fix(bugs): Fix FindAWay Function with new package

This commit is contained in:
anhtunz
2025-04-15 10:13:17 +07:00
parent 6af1baed32
commit da8eb3ae2d
4 changed files with 24 additions and 25 deletions

View File

@@ -25,7 +25,7 @@ showDirections(
TextEditingController(text: destinationLocation);
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
backgroundColor: Colors.transparent,
backgroundColor: Theme.of(context).colorScheme.surface,
// dismissDirection: DismissDirection.none,
duration: const Duration(minutes: 5),
content: Column(
@@ -50,8 +50,8 @@ showDirections(
devicelng,
13.0,
);
List<LatLng> polylineCoordinates = [];
mapBloc.sinkPolylines.add(polylineCoordinates);
// List<LatLng> polylineCoordinates = [];
mapBloc.sinkPolylines.add([]);
markers.clear();
if (context.mounted) {
ScaffoldMessenger.of(context).hideCurrentSnackBar();