Just make sure all bitmap icons are loaded before you display the map.
If in a Stateful widget, you can just do (load all your icons, this just loads one)
BitmapDescriptor _myIcon;
@override
void initState() {
super.initState();
loadIcons();
}
loadIcons() async {
_myIcon = await BitmapDescriptor.fromAssetImage(
ImageConfiguration(size: Size(48, 48)), 'images/my_icon.bmp’);
print('Loaded my icons…’);
}
Probably best to add them to the provider, so they are available everywhere.
Also, make sure google_maps_flutter is the latest version.