google_places_flutter
2.1.1, released a year ago by an unverified publisher
Google Places autocomplete TextField for Android, iOS, web, desktop.
What it does
Provides a TextField that queries the Google Places API and displays suggestions. It can return place details including latitude and longitude, and supports custom list item builders.
AI-written summary of version 2.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need address input with autocomplete
- You need to retrieve coordinates from a place
- You want a customizable list item UI
Skip it when
- You already have a custom autocomplete implementation
- You don't want to depend on Google Places API
Strengths
- Cross‑platform support (Android, iOS, web, desktop)
- Null safety and modern Dart syntax
- Customizable debounce, country filtering, keyboard type
- Optional lat/lng retrieval
Weaknesses
- Requires a Google API key and network access
- Limited to Google Places API features
- No built‑in error handling beyond basic callbacks
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Add dependency to pubspec, provide a valid Google API key, no special permissions needed.
GooglePlaceAutoCompleteTextField(
textEditingController: controller,
googleAPIKey: "YOUR_GOOGLE_API_KEY",
itemClick: (Prediction p) {
controller.text = p.description ?? "";
},
getPlaceDetailWithLatLng: (Prediction p) {
print("lat: ${p.lat}, lng: ${p.lng}");
},
)Alternatives
Packages that do the same job and could replace google_places_flutter.
- timelines_plus
A powerful and easy-to-use timeline package for Flutter.
79Compare - flutter_gcaptcha_v3
Provides a Flutter widget to integrate Google reCAPTCHA v3 on iOS and Android.
38Compare - liquid_progress_indicator_v2
A progress indicator with a water-like liquid effect.
50Compare - flutter_custom_tab_bar
Custom tab bar widget with multiple indicator styles including vertical round, standard, linear, and round.
44Compare
Works with
Packages commonly used together with google_places_flutter: ones it builds on, ones built on it, and its own family.