there is an error message under the class_GoogleMapScreenState " Non-nullable instance filed 'mapMarker' must be initialized. "( the timeframe is 10:10 in the video). How to solve the error ?
E/GoogleMapController(27143): Cannot enable MyLocation layer as location permissions are not granted Im getting this error in my console. I can not see the map
I follow all steps but I can't assign my custom mark to icon(icon: mapMarker) give me an error >> Error: Can't access 'this' in a field initializer to read 'mapMarker'. icon: mapMarker,
Good stuff,but i was wondering how to retrieve the markers and description from a database like firebase or firestore so i can update the date remotely and not build it into the app itself...I look forward to your response please get back to me as this is urgent.
i have done the same thing setCustomMarker() async { customIcon = await BitmapDescriptor.fromAssetImage( ImageConfiguration(), 'assets/icons/CustomMarker.png', package: 'assets/icons/CustomMarker.png', mipmaps: false, ); } but image was not showing default marker is showing i have called it in initstate as well
the video is lite straight to the point , i would like to ask a question why is it that when i animated to newLatLngBounds the map goes to a wrong location ?
Excellent tutorial how to implement Google Maps in Flutter. Along with it, I have shown you how you can use a custom icon for map marker, add infoWindow to it, and customize the map style or theme.
[ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: plugins.flutter.io/google_maps please need help or this tutorial is useless !!