-
Notifications
You must be signed in to change notification settings - Fork 30.3k
[Google_maps_flutter] GoogleMapController.getZoomLevel fails with castError #78856
Copy link
Copy link
Closed
flutter/plugins
#3754Labels
a: null-safetySupport for Dart's null safety featureSupport for Dart's null safety featurefound in release: 2.0Found to occur in 2.0Found to occur in 2.0has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: mapsGoogle Maps pluginGoogle Maps pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Metadata
Metadata
Assignees
Labels
a: null-safetySupport for Dart's null safety featureSupport for Dart's null safety featurefound in release: 2.0Found to occur in 2.0Found to occur in 2.0has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: mapsGoogle Maps pluginGoogle Maps pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Steps to Reproduce
This error occurs in
google_maps_flutter: 2.0.1packageprint('Zoom: ${mapController?.getZoomLevel()}');somewhere in code e.g. move_camera.dart line 131Camera Controlexample and presszoomBybuttontype 'Future<double?>' is not a subtype of type 'Future<double>' in type castLogs