disabled gps zoom to current location when popup

This commit is contained in:
2024-03-05 15:43:13 +05:30
parent cd258744fc
commit 773650be82
2 changed files with 9 additions and 4 deletions

View File

@ -176,10 +176,10 @@ class _MapWidgetState extends State<MapWidget> {
}
void _centerMapOnUser() {
indexController.mapController.move(
LatLng(
destinationController.currentLat, destinationController.currentLon),
17.0);
print("showBottomSheet ${destinationController.shouldShowBottomSheet}");
if (destinationController.shouldShowBottomSheet) {
destinationController.centerMapToCurrentLocation();
}
}
@override