feat: Add optional agentTypeId field to RegisterRequest model.
This commit is contained in:
@@ -50,9 +50,19 @@ class _HeroSectionState extends ConsumerState<HeroSection> {
|
||||
if (_selectedLocation != null) params['location'] = Uri.encodeComponent(_selectedLocation!);
|
||||
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,
|
||||
),
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
final queryString =
|
||||
params.entries.map((e) => '${e.key}=${e.value}').join('&');
|
||||
context.push('/agents/search${queryString.isNotEmpty ? '?$queryString' : ''}');
|
||||
context.push('/agents/search?$queryString');
|
||||
}
|
||||
|
||||
Future<void> _showTypePicker() async {
|
||||
|
||||
Reference in New Issue
Block a user