Upgrading google_maps_flutter 0.3 to 0.4
Breaking0.3.0+2 → 0.4.0Breaking2Changed1
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- The controller object no longer reports map changes; use the map widget's callbacks instead.
- If you listened for map changes through the controller, you now set callbacks on the map widget itself.
Must act 2 items need code or config changes
What you must change
Breaking2
GoogleMapController no longer handles change events.
GoogleMapControllerChange events are now callbacks on the GoogleMap widget instead of being handled by GoogleMapController.
GoogleMapGoogleMapControllerAPI changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- removed:
field GoogleMap.trackCameraPosition: final bool - removed:
get GoogleMapController.cameraPosition: CameraPosition - removed:
get GoogleMapController.isCameraMoving: bool - changed:
class GoogleMapController extends ChangeNotifier → class GoogleMapController - changed:
ctor GoogleMap({ @required this.initialCameraPosition, this.onMapCreated, this.gestureRecognizers, this.compassEnabled = …, this.cameraTargetBounds = …, this.mapType = …, this.minMaxZoomPreference = …, this.rotateGesturesEnabled = …, this.scrollGesturesEnabled = …, this.zoomGesturesEnabled = …, this.tiltGesturesEnabled = …, this.trackCameraPosition = …, this.myLocationEnabled = …, this.markers, }) → ctor GoogleMap({ @required this.initialCameraPosition, this.onMapCreated, this.gestureRecognizers, this.compassEnabled = …, this.cameraTargetBounds = …, this.mapType = …, this.minMaxZoomPreference = …, this.rotateGesturesEnabled = …, this.scrollGesturesEnabled = …, this.zoomGesturesEnabled = …, this.tiltGesturesEnabled = …, this.myLocationEnabled = …, this.markers, this.onCameraMoveStarted, this.… - added:
field GoogleMap.onCameraIdle: final VoidCallback - added:
field GoogleMap.onCameraMove: final CameraPositionCallback - added:
field GoogleMap.onCameraMoveStarted: final VoidCallback - added:
typedef void CameraPositionCallback(CameraPosition position)