Skip to content
pubscout

google_places_sdk_flutter

0.8.0, released 11 days ago by eventer.co.il

Google Places autocomplete for addresses and locations returning coordinates and parsed addresses.

WASM-readyUses material_ui
$ flutter pub add google_places_sdk_flutter
Source repository

What it does

Provides search fields, form fields, overlays, and a Places API client to handle Google Places autocomplete, place details, and photo fetching. Automatically handles billing sessions, localization, and multi-platform pure Dart execution.

AI-written summary of version 0.8.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need users to search and select an address or location by text input
  • You want coordinates and a parsed address (street, city, postal code, country) from a single selection
  • You want built-in session billing management for Google Places API

Skip it when

  • Your users need to pick a point visually by dropping a pin on a map
  • You require full interactive map viewing capabilities

Strengths

  • Pure Dart implementation working across Android, iOS, web, macOS, Windows, and Linux
  • Handles billing sessions automatically
  • Multi-language text support and layout handling out of the box
  • No location permissions required

Weaknesses

  • Only supports text search, not map-based point selection
  • Requires a Google Cloud project with Places API (New) and billing enabled

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3

Enable Places API (New) in the Google Cloud console and obtain an API key.

import 'package:google_places_sdk_flutter/google_places_sdk_flutter.dart';

const apiKey = String.fromEnvironment('GOOGLE_MAPS_API_KEY');

PlacesAutocompleteField(
  apiKey: apiKey,
  onSelection: (selection) {
    debugPrint(selection.displayText);
    debugPrint('${selection.place?.location}');
  },
)

Alternatives

Packages that do the same job and could replace google_places_sdk_flutter.

  • google_maps_flutter

    Pick an exact point on a full interactive Google Map rather than searching by text.

  • geocoding

    Convert between coordinates and addresses without requiring the Google Places autocomplete API.

Works with

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