disabled gps zoom to current location when popup
This commit is contained in:
@ -904,6 +904,11 @@ class DestinationController extends GetxController {
|
|||||||
indexController.loadLocationsBound();
|
indexController.loadLocationsBound();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
centerMapToCurrentLocation();
|
||||||
|
}
|
||||||
|
|
||||||
|
void centerMapToCurrentLocation() {
|
||||||
|
indexController.mapController.move(LatLng(currentLat, currentLon), 17.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void connectionChanged(String val) {
|
void connectionChanged(String val) {
|
||||||
|
|||||||
@ -176,10 +176,10 @@ class _MapWidgetState extends State<MapWidget> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _centerMapOnUser() {
|
void _centerMapOnUser() {
|
||||||
indexController.mapController.move(
|
print("showBottomSheet ${destinationController.shouldShowBottomSheet}");
|
||||||
LatLng(
|
if (destinationController.shouldShowBottomSheet) {
|
||||||
destinationController.currentLat, destinationController.currentLon),
|
destinationController.centerMapToCurrentLocation();
|
||||||
17.0);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
Reference in New Issue
Block a user