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:
pradeepkumar
2026-03-16 17:49:25 +05:30
parent d86c862ed7
commit 26d9197548
3 changed files with 33 additions and 16 deletions

View File

@@ -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';
});
},
),