google_maps_native_sdk library

Native Google Maps plugin for Flutter/FlutterFlow.

Provides a GoogleMapView widget backed by platform views (Android/iOS) and a GoogleMapController for interacting with the map: markers, polylines, camera movement, styling, snapshots and events.

Classes

AudioFocus
Minimal audio focus helper (Android) and iOS ducking via flutter_tts. On Android, uses a small platform channel to request/abandon focus.
CameraPosition
Initial camera setup for the map.
DeviceHeading
Device heading (compass/rotation vector) broadcast stream.
DirectionsRoute
DirectionsService
DirectionStep
GmnsNavHub
Minimal helper hub to make it easier to use from FlutterFlow custom actions. Holds a single active controller/session and exposes simple methods.
GoogleMapController
Controller that drives the native map view via a MethodChannel.
GoogleMapsNativeSdk
Convenience wrapper exposing package/platform version from the host side.
GoogleMapView
A Flutter widget that renders a native Google Map view.
LatLng
Geographic coordinate (latitude/longitude) in WGS84.
MapNavigator
MapPadding
Padding to be applied around the map viewport (in logical pixels).
MapStyleBuilder
Helpers to build Google Maps JSON styles.
MarkerOptions
Marker configuration.
Bridge to the native Navigation UI host.
Simple navigation instruction banner widget. Shows a maneuver icon, instruction text and remaining distance.
Minimal options to launch the native Google Navigation UI (when available).
PolylineCodec
Utilities related to polylines.
PolylineOptions
Polyline configuration.
RouteData
Route data with polyline, distance, duration, toll info and details.
RouteLegData
RouteMatrixElement
One origin/destination ETA entry from ComputeRouteMatrix.
RouteModifiers
Route constraints (avoid tolls/highways/ferries) and toll passes.
RoutesApi
Google Routes API (v2) lightweight client.
RoutesResponse
Response wrapper for computeRoutes.
RouteStepData
SpeedAlert
StaticMapView
Simple Google Static Maps widget with optional polyline.
TollInfo
TollPrice
Waypoint
Waypoint with advanced options.

Enums

Day/Night theme behavior for the native Navigation UI.
PolylineQuality
Polyline quality options for encoded output.
TravelMode
Travel mode mapping to Google enum.
Units
Units system.
VehicleRotationSource

Typedefs

MapCreatedCallback = void Function(GoogleMapController controller)
Callback with the created GoogleMapController.
MarkerTapCallback = void Function(String markerId)
Callback invoked when a marker is tapped.
SpeedLimitProvider = Future<double?> Function(LatLng position)