feat: Implement socket-first message sending with REST fallback, enhance chat room re-joining on socket reconnect, and update 'Categories' to 'Specialization' in the hero section.
This commit is contained in:
@@ -31,9 +31,9 @@ class _HeroSectionState extends ConsumerState<HeroSection> {
|
||||
String? _selectedLocation;
|
||||
String _selectedLocationName = 'Location';
|
||||
String? _selectedCategory;
|
||||
String _selectedCategoryName = 'Categories';
|
||||
String _selectedCategoryName = 'Specialization';
|
||||
|
||||
/// Cached filter fields fetched on-demand for Location/Categories pickers.
|
||||
/// Cached filter fields fetched on-demand for Location/Specialization pickers.
|
||||
List<FilterableField>? _cachedFilterFields;
|
||||
|
||||
@override
|
||||
@@ -371,22 +371,22 @@ class _HeroSectionState extends ConsumerState<HeroSection> {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 18),
|
||||
// Categories — opens picker
|
||||
// Specialization — opens picker
|
||||
GestureDetector(
|
||||
onTap: () => _showFilterPicker(
|
||||
title: 'Select Category',
|
||||
title: 'Select Specialization',
|
||||
fieldSlug: 'specialization',
|
||||
currentValue: _selectedCategory,
|
||||
onSelect: (value, label) {
|
||||
setState(() {
|
||||
_selectedCategory = value;
|
||||
_selectedCategoryName = label ?? 'Categories';
|
||||
_selectedCategoryName = label ?? 'Specialization';
|
||||
});
|
||||
},
|
||||
onClear: () {
|
||||
setState(() {
|
||||
_selectedCategory = null;
|
||||
_selectedCategoryName = 'Categories';
|
||||
_selectedCategoryName = 'Specialization';
|
||||
});
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user