HomeiOS DevelopmentTips on how to wait earlier than it absolutely dispose?

Tips on how to wait earlier than it absolutely dispose?


I have never 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 move will change

enter image description here

Stack(
  youngsters: [
      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

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments