mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
feat: Enhance messaging and SAR marker functionalities
- Integrated SAR marker sending feature in MessagesTab with a dedicated dialog for user input. - Updated message sending logic to default to the first available room if no contact is selected. - Improved user feedback with SnackBars for connection issues and successful marker sends. - Refactored contact selection to remove unused code and streamline the process. - Added location fetching capabilities using Geolocator for SAR markers. - Updated sample data with more relevant team names using emojis. - Enhanced map markers to include rotation handling and improved display of contact information. - Introduced color coding for location update age in map markers for better visibility.
This commit is contained in:
@@ -29,6 +29,9 @@ class MessagesProvider with ChangeNotifier {
|
||||
List<SarMarker> get stagingAreaMarkers =>
|
||||
sarMarkers.where((m) => m.type == SarMarkerType.stagingArea).toList();
|
||||
|
||||
List<SarMarker> get objectMarkers =>
|
||||
sarMarkers.where((m) => m.type == SarMarkerType.object).toList();
|
||||
|
||||
/// Add a message
|
||||
void addMessage(Message message) {
|
||||
_messages.add(message);
|
||||
@@ -151,6 +154,7 @@ class MessagesProvider with ChangeNotifier {
|
||||
'foundPerson': foundPersonMarkers.length,
|
||||
'fire': fireMarkers.length,
|
||||
'stagingArea': stagingAreaMarkers.length,
|
||||
'object': objectMarkers.length,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user