I'm using Google Maps (google_maps_flutter: ^2.1.3) in my Flutter app, and when I open the app on the phone for the first time, it asks for location permission. After giving this permission, my location on the Map is not shown with a blue dot and the go to my location button is not visible either. However, after that, when I close the application and open it again, both my location appears with a blue dot and the go to my location button is actively displayed on the screen.
Here is my GoogleMap widget:
GoogleMap(
myLocationEnabled: true,
myLocationButtonEnabled: true,
mapType: MapType.normal,
initialCameraPosition: const CameraPosition(
target: LatLng(30, 30),
zoom: 4,
),
markers: markers,
mapToolbarEnabled: false,
),
What do I need to do in order for my location to appear on Google Maps after I give location permission when I first open the application?