fix(bugs):

fix(DeviceManagerScreen): show all devices when visibility=DELETED
fix(MapScreen): cannot delete polylines when closing SnackBar on iOS
This commit is contained in:
anhtunz
2025-04-28 09:44:26 +07:00
parent b75635a801
commit f80e234b1d
6 changed files with 32 additions and 28 deletions

View File

@@ -117,12 +117,14 @@ class _MapScreenState extends State<MapScreen> with WidgetsBindingObserver {
clusterManager.updateMap();
},
polylines: {
Polyline(
polylineId: const PolylineId('router'),
points: polylinesSnapshot.data ?? [],
color: Colors.deepPurpleAccent,
width: 8,
),
if (polylinesSnapshot.data != null && polylinesSnapshot.data!.isNotEmpty) ... [
Polyline(
polylineId: const PolylineId('router'),
points: polylinesSnapshot.data!,
color: Colors.deepPurpleAccent,
width: 8,
),
]
},
style: mapThemeSnapshot.data,
);