GoogleMapsNavigationView class Navigation View

The main map view widget for Google Maps Navigation.

Inheritance

Constructors

GoogleMapsNavigationView({Key? key, required OnNavigationViewCreatedCallback onViewCreated, CameraPosition initialCameraPosition = const CameraPosition(), MapType initialMapType = MapType.normal, bool initialCompassEnabled = true, bool initialRotateGesturesEnabled = true, bool initialScrollGesturesEnabled = true, bool initialTiltGesturesEnabled = true, bool initialZoomGesturesEnabled = true, bool initialScrollGesturesEnabledDuringRotateOrZoom = true, bool initialMapToolbarEnabled = true, double? initialMinZoomPreference, double? initialMaxZoomPreference, bool initialZoomControlsEnabled = true, LatLngBounds? initialCameraTargetBounds, EdgeInsets? initialPadding, NavigationUIEnabledPreference initialNavigationUIEnabledPreference = NavigationUIEnabledPreference.automatic, TextDirection? layoutDirection, Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{}, OnRecenterButtonClicked? onRecenterButtonClicked, OnMarkerClicked? onMarkerClicked, OnMarkerDrag? onMarkerDrag, OnMarkerDragStart? onMarkerDragStart, OnMarkerDragEnd? onMarkerDragEnd, OnMarkerInfoWindowClicked? onMarkerInfoWindowClicked, OnMarkerInfoWindowClosed? onMarkerInfoWindowClosed, OnMarkerInfoWindowLongClicked? onMarkerInfoWindowLongClicked, OnMapClicked? onMapClicked, OnMapLongClicked? onMapLongClicked, OnPolygonClicked? onPolygonClicked, OnPolylineClicked? onPolylineClicked, OnCircleClicked? onCircleClicked, OnNavigationUIEnabledChanged? onNavigationUIEnabledChanged, OnMyLocationClicked? onMyLocationClicked, OnMyLocationButtonClicked? onMyLocationButtonClicked, OnCameraMoveStarted? onCameraMoveStarted, OnCameraMove? onCameraMove, OnCameraIdle? onCameraIdle, OnCameraStartedFollowingLocation? onCameraStartedFollowingLocation, OnCameraStoppedFollowingLocation? onCameraStoppedFollowingLocation})
The main widget for embedding Google Maps Navigation into a Flutter application.
const

Properties

gestureRecognizers Set<Factory<OneSequenceGestureRecognizer>>
Which gestures should be forwarded to the PlatformView.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
initialCameraPosition CameraPosition
The initial positioning of the camera in the map view.
finalinherited
initialCameraTargetBounds LatLngBounds?
Specifies a bounds to constrain the camera target, so that when users scroll and pan the map, the camera target does not move outside these bounds.
finalinherited
initialCompassEnabled bool
Specifies whether the compass should be enabled.
finalinherited
initialMapToolbarEnabled bool
Specifies whether the map toolbar should be enabled. Only applicable on Android.
finalinherited
initialMapType MapType
The type of map to display, specified using MapType enum values.
finalinherited
initialMaxZoomPreference double?
Specifies a preferred upper bound for camera zoom.
finalinherited
initialMinZoomPreference double?
Specifies a preferred lower bound for camera zoom.
finalinherited
initialNavigationUIEnabledPreference NavigationUIEnabledPreference
Determines the initial visibility of the navigation UI on map initialization.
final
initialPadding EdgeInsets?
Specifies the initial padding for the map view.
finalinherited
initialRotateGesturesEnabled bool
Specifies whether rotate gestures should be enabled.
finalinherited
initialScrollGesturesEnabled bool
Specifies whether scroll gestures should be enabled.
finalinherited
initialScrollGesturesEnabledDuringRotateOrZoom bool
Specifies whether scroll gestures during rotate or zoom should be enabled.
finalinherited
initialTiltGesturesEnabled bool
Specifies whether tilt gestures should be enabled.
finalinherited
initialZoomControlsEnabled bool
Specifies whether the zoom controls should be enabled. Only applicable on Android.
finalinherited
initialZoomGesturesEnabled bool
Specifies whether zoom gestures should be enabled.
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
layoutDirection TextDirection?
The directionality to be used for text layout within the embedded view.
finalinherited
onCameraIdle OnCameraIdle?
On camera idle callback.
finalinherited
onCameraMove OnCameraMove?
On camera move callback.
finalinherited
onCameraMoveStarted OnCameraMoveStarted?
On camera move started callback.
finalinherited
onCameraStartedFollowingLocation OnCameraStartedFollowingLocation?
On camera started following location callback (Android-only).
finalinherited
onCameraStoppedFollowingLocation OnCameraStoppedFollowingLocation?
On camera stopped following location callback (Android-only).
finalinherited
onCircleClicked OnCircleClicked?
On circle clicked callback.
finalinherited
onMapClicked OnMapClicked?
On map clicked callback.
finalinherited
onMapLongClicked OnMapLongClicked?
On map long clicked callback.
finalinherited
onMarkerClicked OnMarkerClicked?
On marker clicked callback.
finalinherited
onMarkerDrag OnMarkerDrag?
On marker drag callback.
finalinherited
onMarkerDragEnd OnMarkerDragEnd?
On marker drag end callback.
finalinherited
onMarkerDragStart OnMarkerDragStart?
On marker drag start callback.
finalinherited
onMarkerInfoWindowClicked OnMarkerInfoWindowClicked?
On marker info window clicked callback.
finalinherited
onMarkerInfoWindowClosed OnMarkerInfoWindowClosed?
On marker info window closed callback.
finalinherited
onMarkerInfoWindowLongClicked OnMarkerInfoWindowLongClicked?
On marker info window long clicked callback.
finalinherited
onMyLocationButtonClicked OnMyLocationButtonClicked?
On my location button clicked callback.
finalinherited
onMyLocationClicked OnMyLocationClicked?
On my location clicked callback.
finalinherited
onNavigationUIEnabledChanged OnNavigationUIEnabledChanged?
On navigation UI enabled changed callback.
final
onPolygonClicked OnPolygonClicked?
On polygon clicked callback.
finalinherited
onPolylineClicked OnPolylineClicked?
On polyline clicked callback.
finalinherited
onRecenterButtonClicked OnRecenterButtonClicked?
On recenter button clicked event callback.
finalinherited
onViewCreated OnNavigationViewCreatedCallback
Callback triggered when the navigation view is created.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates a State for this GoogleMapsNavigationView.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited