feat: Navigate directly to the agent search page when no filters are applied and prioritize user profile data for displaying user names and avatars.
This commit is contained in:
@@ -51,12 +51,8 @@ class _HeroSectionState extends ConsumerState<HeroSection> {
|
||||
if (_selectedCategory != null) params['category'] = Uri.encodeComponent(_selectedCategory!);
|
||||
|
||||
if (params.isEmpty) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
content: Text('Please select at least one filter to search'),
|
||||
backgroundColor: AppColors.accentOrange,
|
||||
),
|
||||
);
|
||||
// "All Types" with no other filters — navigate to show all agents
|
||||
context.push('/agents/search');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user