Skip to content
pubscout

google_places_flutter

2.1.1, released a year ago by an unverified publisher

Google Places autocomplete TextField for Android, iOS, web, desktop.

WASM-readyQuiet but busy
$ flutter pub add google_places_flutter
Source repository

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.

Works with

Packages commonly used together with google_places_flutter: ones it builds on, ones built on it, and its own family.