-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Is there an existing issue for this?
- I have searched the existing issues
Description of the bug
If you try to use the GoogleMapViewController to add, remove, or clear anything—such as markers, polylines, or animating the camera—when there is no map view, the app crashes instead of throwing an exception.
I understand it’s not correct to perform these actions when the map is not shown (no view ID), but crashing the app is bad behavior.
Flutter version
3.32.2
Package version
0.6.4
Native SDK versions
- I haven't changed the version of the native SDKs
Flutter Doctor Output
√] Flutter (Channel stable, 3.32.2, on Microsoft Windows [Version 10.0.19045.6216], locale en-US)
[√] Windows Version (10 Enterprise 64-bit, 22H2, 2009)
[√] Android Studio (version 2024.3)
[√] Connected device (3 available)
[√] Network resources
Steps to reproduce
If you try to use the GoogleMapViewController to add, remove, or clear anything—such as markers, polylines, or animating the camera—when there is no map view, the app crashes instead of throwing an exception.
I understand it’s not correct to perform these actions when the map is not shown (no view ID), but crashing the app is bad behavior.
Code Sample
// Example code here
Additional Context
No response