Home IOS Development Find out how to wait earlier than it totally dispose?

Find out how to wait earlier than it totally dispose?

0
Find out how to wait earlier than it totally dispose?

[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]

LEAVE A REPLY

Please enter your comment!
Please enter your name here