[ad_1]
I have not determine this nonetheless, once I pop the present scaffold there is a bit delay of disposing the GoogleMap and customized marker in stack, nevertheless once I tried utilizing PushAndRemove it’s a lot better than pop however this system circulate will change
Stack(
kids: [
Container(
height: 250,
child: GoogleMap(
zoomGesturesEnabled: false,
scrollGesturesEnabled:
false,
tiltGesturesEnabled: false,
rotateGesturesEnabled:
false,
zoomControlsEnabled: false,
initialCameraPosition:
CameraPosition(
target: LatLng(
currentLocation!
.latitude!,
currentLocation!
.longitude!,
),
zoom: 15),
onMapCreated:
(GoogleMapController
mapController) {
_controller.complete(
mapController);
}),
),
Positioned.fill(
child: Align(
alignment: Alignment.center,
child: _customPin()),
),
],
)
PS: That’s an toast positioned in middle
[ad_2]