Skip to content

Upgrading google_maps_flutter 0.0 to 0.2

Breaking0.0.3+3 → 0.2.0+6Breaking1Fixed3Other4

BreakingUpgrade verdict

1 breaking change.

  • The plugin now uses AndroidX instead of the old Android Support Library. Apps that still use the old support library must switch to AndroidX too.
1 item needs code or config changes

google_maps_flutter publishes an official migration guide for version 0.2. It covers more than the release notes do.

Also migrate ↗
Breaking1
Migrates from the deprecated Android Support Library to AndroidX, requiring Android apps using the plugin to also migrate.

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • removed: class GoogleMapOptions
  • removed: ctor GoogleMapOptions({ this.cameraPosition, this.compassEnabled, this.cameraTargetBounds, this.mapType, this.minMaxZoomPreference, this.rotateGesturesEnabled, this.scrollGesturesEnabled, this.tiltGesturesEnabled, this.trackCameraPosition, this.zoomGesturesEnabled, this.myLocationEnabled, })
  • removed: field GoogleMap.options: final GoogleMapOptions
  • removed: field GoogleMapOptions.cameraPosition: final CameraPosition
  • removed: field GoogleMapOptions.cameraTargetBounds: final CameraTargetBounds
  • removed: field GoogleMapOptions.compassEnabled: final bool
  • removed: field GoogleMapOptions.mapType: final MapType
  • removed: field GoogleMapOptions.minMaxZoomPreference: final MinMaxZoomPreference
  • removed: field GoogleMapOptions.myLocationEnabled: final bool
  • removed: field GoogleMapOptions.rotateGesturesEnabled: final bool
  • removed: field GoogleMapOptions.scrollGesturesEnabled: final bool
  • removed: field GoogleMapOptions.tiltGesturesEnabled: final bool
  • removed: field GoogleMapOptions.trackCameraPosition: final bool
  • removed: field GoogleMapOptions.zoomGesturesEnabled: final bool
  • removed: get GoogleMapController.options: GoogleMapOptions
  • removed: method GoogleMapController.updateMapOptions(GoogleMapOptions changes): Future<void>
  • removed: method GoogleMapOptions.copyWith(GoogleMapOptions change): GoogleMapOptions
  • removed: static field GoogleMapOptions.defaultOptions: final GoogleMapOptions
  • changed: ctor GoogleMap({ @required this.onMapCreated, GoogleMapOptions options, this.gestureRecognizers, }) → 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 = …, })
  • changed: static method GoogleMapController.init( int id, GoogleMapOptions options): Future<GoogleMapController> → static method GoogleMapController.init( int id, CameraPosition initialCameraPosition): Future<GoogleMapController>
  • added: field GoogleMap.cameraTargetBounds: final CameraTargetBounds
  • added: field GoogleMap.compassEnabled: final bool
  • added: field GoogleMap.initialCameraPosition: final CameraPosition
  • added: field GoogleMap.mapType: final MapType
  • added: field GoogleMap.minMaxZoomPreference: final MinMaxZoomPreference
  • added: field GoogleMap.myLocationEnabled: final bool
  • added: field GoogleMap.rotateGesturesEnabled: final bool
  • added: field GoogleMap.scrollGesturesEnabled: final bool
  • added: field GoogleMap.tiltGesturesEnabled: final bool
  • added: field GoogleMap.trackCameraPosition: final bool
  • added: field GoogleMap.zoomGesturesEnabled: final bool
  • added: get CameraPosition.hashCode: int
  • added: get CameraTargetBounds.hashCode: int
  • added: get MinMaxZoomPreference.hashCode: int
  • added: method CameraPosition.operator ==(dynamic other): bool
  • added: method CameraPosition.toString(): String
  • added: method CameraTargetBounds.operator ==(dynamic other): bool
  • added: method CameraTargetBounds.toString(): String
  • added: method MinMaxZoomPreference.operator ==(dynamic other): bool
  • added: method MinMaxZoomPreference.toString(): String
  • added: static method CameraPosition.fromMap(dynamic json): CameraPosition
  • added: static method LatLngBounds.fromList(dynamic json): LatLngBounds