map_location_picker library
Classes
- AddressComponent
- Official docs: https://developers.google.com/maps/documentation/places/web-service/details#AddressComponent
- AlternativeId
- AndroidGoogleMapsFlutter
- Android specific settings for GoogleMap.
- AndroidPosition
- Contains additional location information only available on Android platforms.
- AndroidResource
- Uniquely identifies an Android resource.
- AndroidSettings
- Represents different Android specific settings with which you can set a value other then the default value of the setting.
- AppleSettings
- Represents different iOS specific settings with which you can set a value other then the default value of the setting.
-
ArgumentCallbacks<
T> - Mutable collection of ArgumentCallback instances, itself an ArgumentCallback.
- AssetMapBitmap
- Represents a BitmapDescriptor that is created from an asset image.
- AutoCompleteService
- The autocomplete service for the map location picker. AutoCompleteService service is used to search for places and get the details of the place.
- BitmapDescriptor
- Defines a bitmap image. For a marker, this class can be used to set the image of the marker icon. For a ground overlay, it can be used to set the image to place on the surface of the earth.
- Bounds
- BytesMapBitmap
-
Represents a BitmapDescriptor that is created from an array of bytes
encoded as
PNGin Uint8List. - CameraPosition
- The position of the map "camera", the view point from which the world is shown in the map view.
- CameraTargetBounds
- Bounds for the map camera target.
- CameraUpdate
- Defines a camera move, supporting absolute moves as well as moves relative the current position.
- Cap
- Cap that can be applied at the start or end vertex of a Polyline.
- Circle
- Draws a circle on the map.
- CircleId
- Uniquely identifies a Circle among GoogleMap circles.
- CircleLocation
- Cluster
- A cluster containing multiple markers.
- ClusterManager
- ClusterManager manages marker clustering for set of Markers that have the same ClusterManagerId set.
- ClusterManagerId
- Uniquely identifies a ClusterManager among GoogleMap clusters.
- Component
- ForegroundNotificationConfig
- Configuration for the foreground notification. When this is provided the location service will run as a foreground service.
- GeoCodingConfig
- The geocoding service to use for the map location picker.
- GeocodingResponse
- GeocodingResult
- Geolocator
- Wraps CLLocationManager (on iOS) and FusedLocationProviderClient or LocationManager (on Android), providing support to retrieve position information of the device.
- GeolocatorPlatform
- The interface that implementations of geolocator must implement.
- Geometry
- Official docs: https://developers.google.com/maps/documentation/places/web-service/details#Geometry
- GoogleMap
- A widget which displays a map with data obtained from the Google Maps service.
- GoogleMapController
- Controller for a single GoogleMap instance running on the host platform.
- GoogleMapsGeocoding
- https://developers.google.com/maps/documentation/geocoding/start
- GoogleMapsPlaces
- https://developers.google.com/places/web-service/
-
GoogleResponse<
T> -
GoogleResponseList<
T> - GoogleResponseStatus
- GroundOverlay
- Ground overlay to be drawn on the map.
- GroundOverlayId
- Uniquely identifies a GroundOverlay among GoogleMap ground overlays.
- Heatmap
- Draws a heatmap on the map.
- HeatmapGradient
- Represents a mapping of intensity to color.
- HeatmapGradientColor
- A Color with a startPoint for use in a HeatmapGradient.
- HeatmapId
- Uniquely identifies a Heatmap among GoogleMap heatmaps.
- HeatmapRadius
- A wrapper around platform specific behavior for the radius of a Heatmap.
- InfoWindow
- Text labels for a Marker info window.
- LatLng
- A pair of latitude and longitude coordinates, stored as degrees.
- LatLngBounds
- A latitude/longitude aligned rectangle.
- Location
- LocationSettings
- Represents the abstract LocationSettings class with which you can configure platform specific settings.
- LocationShape
- MapLocationPicker
- The main widget for the map location picker.
- MapLocationPickerConfig
- Marker
- Marks a geographical location on the map.
- MarkerId
- Uniquely identifies a Marker among GoogleMap markers.
- MatchedSubstring
- MinMaxZoomPreference
- Preferred bounds for map camera zoom level.
- PatternItem
- Item used in the stroke pattern for a Polyline.
- Photo
- PlaceDetails
- Official docs: https://developers.google.com/maps/documentation/places/web-service/details
- PlaceEditorialSummary
- Official docs: https://developers.google.com/maps/documentation/places/web-service/details#PlaceEditorialSummary
- PlaceOpeningHours
- Official docs: https://developers.google.com/maps/documentation/places/web-service/details#PlaceOpeningHours
- PlaceOpeningHoursPeriod
- Official docs: https://developers.google.com/maps/documentation/places/web-service/details#PlaceOpeningHoursPeriod
- PlaceOpeningHoursPeriodDetail
- PlacesAutocomplete
-
The autocomplete view for the map location picker.
PlacesAutocomplete is a widget that shows a list of suggestions as the user types.
It is a wrapper around
CupertinoTypeAheadFieldand AutoCompleteService. - PlacesAutocompleteResponse
- PlacesDetailsResponse
- PlaceSpecialDay
- Official docs: https://developers.google.com/maps/documentation/places/web-service/details#PlaceSpecialDay
- PlacesSearchResponse
- PlacesSearchResult
- PlusCode
- Polygon
- Draws a polygon through geographical locations on the map.
- PolygonId
- Uniquely identifies a Polygon among GoogleMap polygons.
- Polyline
- Draws a line through geographical locations on the map.
- PolylineId
- Uniquely identifies a Polyline among GoogleMap polylines.
- Position
- Contains detailed location information.
- Prediction
- RectangleLocation
- Review
- ScreenCoordinate
- Represents a point coordinate in the GoogleMap's view.
- SearchConfig
- The configuration for the autocomplete view. SearchConfig is a class that contains the configuration for the autocomplete view.
- StreetAddress
- StructuredFormatting
- Term
- Tile
- Contains information about a Tile that is returned by a TileProvider.
- TileOverlay
- A set of images which are displayed on top of the base map tiles.
- TileOverlayId
- Uniquely identifies a TileOverlay among GoogleMap tile overlays.
- TileProvider
- An interface for a class that provides the tile images for a TileOverlay.
- WebSettings
- Represents different Web specific settings with which you can set a value other then the default value of the setting.
- WeightedLatLng
- A data point entry for a heatmap.
Enums
- ActivityType
- Represents the possible iOS activity types.
- BusinessStatus
- CardType
- JointType
- Joint types for Polyline.
- LocationAccuracy
- Represent the possible location accuracy values.
- LocationAccuracyStatus
- Represent the current Location Accuracy Status on iOS 14.0 and higher.
- LocationPermission
- Represent the possible location permissions.
- MapBitmapScaling
- Type of bitmap scaling to use on BitmapDescriptor creation.
- MapType
- Type of map tiles to display.
- PriceLevel
- ResponseStatus
- RouteType
- ServiceStatus
- Describes the current state of the location service on the native platform.
- TrafficModel
- TransitMode
- TransitRoutingPreferences
- TravelMode
-
Google requires the
modequery param to be lower case but then when parsingtravel_modefrom json response it should be treated as upper case - Unit
- WebCameraControlPosition
- This setting controls how the API handles camera control button on the map.
- WebGestureHandling
- This setting controls how the API handles gestures on the map
Extensions
- IntergerExtensions on int
- Provides extension methods on the LocationAccuracy enum.
- MapLocationPickerConfigPatterns on MapLocationPickerConfig
- Adds pattern-matching-related methods to MapLocationPickerConfig.
- SearchConfigPatterns on SearchConfig
- Adds pattern-matching-related methods to SearchConfig.
Functions
Typedefs
-
ArgumentCallback<
T> = void Function(T argument) - Callback function taking a single argument.
-
BottomCardBuilder
= Widget Function(BuildContext context, Place? place, List<
Place> places, String formattedAddress, bool isLoading, VoidCallback onPlaceSelected, Widget searchBar)? - CameraPositionCallback = void Function(CameraPosition position)
- Callback that receives updates to the camera position.
- ConfirmButtonBuilder = Widget Function(BuildContext context, VoidCallback onNext)?
- DecorationBuilder = Widget Function(BuildContext, Widget)?
- EmptyBuilder = Widget Function(BuildContext)?
- ErrorBuilder = Widget Function(BuildContext, Object)?
- ItemBuilder = Widget Function(BuildContext, Suggestion)?
- ItemSeparatorBuilder = Widget Function(BuildContext, int)?
-
ListBuilder
= Widget Function(BuildContext, List<
Widget> )? - LoadingBuilder = Widget Function(BuildContext)?
- MapCreatedCallback = void Function(GoogleMapController controller)
- Callback method for when the map is ready to be used.
- OnSelected = void Function(Suggestion)?
- SearchBarBuilder = Widget Function(BuildContext context, Widget searchBar)?
- TextFieldBuilder = Widget Function(BuildContext, TextEditingController, FocusNode)?
-
TransitionBuilder
= Widget Function(BuildContext, Animation<
double> , Widget)?
Exceptions / Errors
- ActivityMissingException
- An exception thrown when executing functionality which requires an Android while no activity is provided.
- AlreadySubscribedException
- An exception thrown when subscribing to receive positions while another subscription is already active.
- InvalidPermissionException
- An exception thrown when trying to convert a unknown permission into the LocationPermission enum.
- LocationServiceDisabledException
- An exception thrown when trying to access the device's location information while the location service on the device is disabled.
- MapStyleException
- Exception when a map style is invalid or was unable to be set.
- PermissionDefinitionsNotFoundException
- An exception thrown when the required platform specific permission definitions could not be found (e.g. in the AndroidManifest.xml file on Android or in the Info.plist file on iOS).
- PermissionDeniedException
- An exception thrown when trying to access the device's location information while access is denied.
- PermissionRequestInProgressException
- An exception thrown when requesting location permissions while an earlier request has not yet been completed.
- PositionUpdateException
- An exception thrown when something went wrong while listening for position updates.
- UnknownMapObjectIdError
- Error thrown when an unknown map object ID is provided to a method.