google_maps_place_picker_mb
3.1.2, released 3 years ago by an unverified publisher
A Flutter widget that lets users pick a location using Google Maps.
What it does
It displays a Google Map, shows the user's current location, and returns the selected place details. It also supports restricting selection to a circular area and custom zoom controls.
AI-written summary of version 3.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need an interactive map for users to select a place
- You want built‑in handling of location permissions and place details
- You prefer a ready‑made UI over building it from google_maps_flutter yourself
Skip it when
- You only need a static map or simple marker placement
- You require a fully custom UI without the provided picker overlay
Strengths
- Integrates Google Maps, Geolocator and Places APIs in one widget
- Provides extra features like circular restriction and custom zoom controls
- Handles permission requests and location fetching out of the box
Weaknesses
- Relies on multiple native APIs, increasing setup complexity
- Limited customization compared to building your own picker
- Package maintenance may lag behind upstream dependencies
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 9
Add Google Maps API keys for Android (AndroidManifest) and iOS (AppDelegate/Info.plist). Enable location permissions in Info.plist and Android manifest. Enable AndroidX and set compileSdkVersion >=28. Optionally enable embedded views preview on iOS.
import 'package:flutter/material.dart';
import 'package:google_maps_place_picker_mb/google_maps_place_picker.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: PlacePicker(
apiKey: 'YOUR_GOOGLE_API_KEY',
initialPosition: LatLng(37.7749, -122.4194),
onPlacePicked: (result) {
// handle selected place
},
),
),
);
}
}Alternatives
Packages that do the same job and could replace google_maps_place_picker_mb.
- flutter_map
Open‑source map solution without Google API keys, useful for offline or non‑Google maps
90Compare
Works with
Packages commonly used together with google_maps_place_picker_mb: ones it builds on, ones built on it, and its own family.
- uuidgoogle_maps_place_picker_mb depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- package_info_plusgoogle_maps_place_picker_mb depends on itFlutter plugin to query app package info like version, build number and installer store.
- geolocatorgoogle_maps_place_picker_mb depends on itCross-platform plugin to access device GPS, location updates, and coordinate calculations.
- tuplegoogle_maps_place_picker_mb depends on itProvides immutable tuple classes for grouping values.
- providergoogle_maps_place_picker_mb depends on itA lightweight wrapper around InheritedWidget for state management
- google_maps_fluttergoogle_maps_place_picker_mb depends on itA Flutter plugin for integrating Google Maps in Android, iOS, and web applications.
- google_api_headersgoogle_maps_place_picker_mb depends on itA Flutter plugin to fetch required headers for calling Google APIs with an app-restricted API key.
- flutter_google_maps_webservicesgoogle_maps_place_picker_mb depends on itGoogle maps web services for Flutter (Geocoding, Places, Directions, Distance Matrix, etc.)