map_location_picker
4.0.1, released 2 months ago by mohesu.com
Google Maps location picker for Flutter with Places API search and typed addresses.
What it does
A map location picker supporting Android, iOS, and web. It lets users search for places using Places API (New) autocomplete, tap or drag a marker, or use centre-pin picking while returning a typed address result.
AI-written summary of version 4.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a drop-in location or address picker for delivery, ride-hailing, or checkout forms using Google Maps.
- You want support for Android, iOS, and web without writing custom geocoding and search UI from scratch.
Skip it when
- Your application targets desktop platforms (macOS, Windows, Linux) where google_maps_flutter lacks implementation.
- You require an alternative mapping provider like Mapbox or OpenStreetMap instead of Google Maps.
Strengths
- Supports both marker dragging and centre-pin delivery-app patterns out of the box.
- Built-in Places API (New) autocomplete search requiring no CORS proxy on web.
- Provides typed error handling and a comprehensive programmatic controller.
Weaknesses
- Tied exclusively to Google Maps and specific Google Cloud APIs (requires billing and API keys setup).
- No desktop support due to underlying map plugin limitations.
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- Yes (build_runner)
- Direct dependencies
- 9
Requires enabling Google Maps and Places APIs in the Cloud console, configuring API keys in AndroidManifest.xml, AppDelegate.swift, and index.html, plus adding location permissions for mobile platforms.
final picked = await showMapLocationPicker(
context,
config: const MapLocationPickerConfig(apiKey: 'YOUR_API_KEY'),
);
debugPrint(picked?.formattedAddress);Alternatives
Packages that do the same job and could replace map_location_picker.
- google_maps_flutter_web
Web platform implementation of google_maps_flutter.
88Compare - google_maps_flutter_android
Android implementation of the google_maps_flutter plugin.
82Compare - google_maps_flutter_ios
iOS implementation of the google_maps_flutter plugin.
81Compare - location_web
Web implementation of the location plugin for Flutter web.
74Compare
Works with
Packages commonly used together with map_location_picker: ones it builds on, ones built on it, and its own family.
- diomap_location_picker depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- freezed_annotationmap_location_picker depends on itAnnotations for the freezed code-generator.
- geolocatormap_location_picker depends on itCross-platform plugin to access device GPS, location updates, and coordinate calculations.
- google_maps_fluttermap_location_picker depends on itA Flutter plugin for integrating Google Maps in Android, iOS, and web applications.
- flutter_hooksmap_location_picker depends on itA Flutter implementation of React hooks for managing widget life-cycle and code reuse.
- flutter_typeaheadmap_location_picker depends on itA highly customizable typeahead (autocomplete) text input field for Flutter
- google_maps_apismap_location_picker depends on itDart client library for Google Maps Web Services APIs.
- pointer_interceptormap_location_picker depends on itA widget to prevent clicks from being swallowed by underlying HtmlElementViews on the web.