Skip to content

Upgrading google_maps_flutter 0.2 to 0.3

Breaking0.2.0+6 → 0.3.0+2Breaking1Fixed4

BreakingUpgrade verdict

1 breaking change.

  • Markers on the map are now created as widgets instead of being managed through a controller, so existing code that uses the old Marker API must be updated.
1 item needs code or config changes
Breaking1
Changes the Marker API from controller based to widget based.
Marker

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

  • removed: class InfoWindowText
  • removed: class MarkerOptions
  • removed: ctor InfoWindowText(this.title, this.snippet)
  • removed: ctor MarkerOptions({ this.alpha, this.anchor, this.consumeTapEvents, this.draggable, this.flat, this.icon, this.infoWindowAnchor, this.infoWindowText, this.position, this.rotation, this.visible, this.zIndex, })
  • removed: field GoogleMapController.Marker>: final Map<String, Marker>
  • removed: field GoogleMapController.onInfoWindowTapped: final ArgumentCallbacks<Marker>
  • removed: field GoogleMapController.onMarkerTapped: final ArgumentCallbacks<Marker>
  • removed: field InfoWindowText.snippet: final String
  • removed: field InfoWindowText.title: final String
  • removed: field MarkerOptions.alpha: final double
  • removed: field MarkerOptions.anchor: final Offset
  • removed: field MarkerOptions.consumeTapEvents: final bool
  • removed: field MarkerOptions.draggable: final bool
  • removed: field MarkerOptions.flat: final bool
  • removed: field MarkerOptions.icon: final BitmapDescriptor
  • removed: field MarkerOptions.infoWindowAnchor: final Offset
  • removed: field MarkerOptions.infoWindowText: final InfoWindowText
  • removed: field MarkerOptions.position: final LatLng
  • removed: field MarkerOptions.rotation: final double
  • removed: field MarkerOptions.visible: final bool
  • removed: field MarkerOptions.zIndex: final double
  • removed: get GoogleMapController.markers: Set<Marker>
  • removed: get Marker.id: String
  • removed: get Marker.options: MarkerOptions
  • removed: method GoogleMapController.addMarker(MarkerOptions options): Future<Marker>
  • removed: method GoogleMapController.clearMarkers(): Future<void>
  • removed: method GoogleMapController.removeMarker(Marker marker): Future<void>
  • removed: method GoogleMapController.updateMarker(Marker marker, MarkerOptions changes): Future<void>
  • removed: method MarkerOptions.copyWith(MarkerOptions changes): MarkerOptions
  • removed: static field InfoWindowText.noText: const InfoWindowText
  • removed: static field MarkerOptions.defaultOptions: const MarkerOptions
  • 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 = …, }) → 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, })
  • changed: ctor Marker(this._id, this._options) → ctor Marker({ @required this.markerId, this.alpha = …, this.anchor = …, this.consumeTapEvents = …, this.draggable = …, this.flat = …, this.icon = …, this.infoWindow = …, this.position = …, this.rotation = …, this.visible = …, this.zIndex = …, this.onTap, })
  • changed: static method GoogleMapController.init( int id, CameraPosition initialCameraPosition): Future<GoogleMapController> → static method GoogleMapController.init( int id, CameraPosition initialCameraPosition, _GoogleMapState googleMapState, ): Future<GoogleMapController>
  • added: class InfoWindow
  • added: class MarkerId
  • added: ctor InfoWindow({ this.title, this.snippet, this.anchor = …, this.onTap, })
  • added: ctor MarkerId(this.value)
  • added: field GoogleMap.markers: final Set<Marker>
  • added: field InfoWindow.anchor: final Offset
  • added: field InfoWindow.onTap: final VoidCallback
  • added: field InfoWindow.snippet: final String
  • added: field InfoWindow.title: final String
  • added: field Marker.alpha: final double
  • added: field Marker.anchor: final Offset
  • added: field Marker.consumeTapEvents: final bool
  • added: field Marker.draggable: final bool
  • added: field Marker.flat: final bool
  • added: field Marker.icon: final BitmapDescriptor
  • added: field Marker.infoWindow: final InfoWindow
  • added: field Marker.markerId: final MarkerId
  • added: field Marker.onTap: final VoidCallback
  • added: field Marker.position: final LatLng
  • added: field Marker.rotation: final double
  • added: field Marker.visible: final bool
  • added: field Marker.zIndex: final double
  • added: field MarkerId.value: final String
  • added: get InfoWindow.hashCode: int
  • added: get Marker.hashCode: int
  • added: get MarkerId.hashCode: int
  • added: method InfoWindow.copyWith({ String titleParam, String snippetParam, Offset anchorParam, VoidCallback onTapParam, }): InfoWindow
  • added: method InfoWindow.operator ==(Object other): bool
  • added: method InfoWindow.toString(): String
  • added: method Marker.copyWith({ double alphaParam, Offset anchorParam, bool consumeTapEventsParam, bool draggableParam, bool flatParam, BitmapDescriptor iconParam, InfoWindow infoWindowParam, LatLng positionParam, double rotationParam, bool visibleParam, double zIndexParam, VoidCallback onTapParam, }): Marker
  • added: method Marker.operator ==(Object other): bool
  • added: method Marker.toString(): String
  • added: method MarkerId.operator ==(Object other): bool
  • added: method MarkerId.toString(): String
  • added: static field InfoWindow.noText: const InfoWindow