/flutter_google_places

Updated by @zeshuaro and @hoc081098. Google Places - Google places autocomplete widgets for flutter. No wrapper, use https://pub.dev/packages/google_maps_webservice. Maintainer: @KevMorelli

Primary LanguageDartOtherNOASSERTION

Flutter Community: flutter_google_places

Updated by @zeshuaro and @hoc081098

  • Add to support restricted API keys.
  • Refactoring by using RxDart for more power.
dependency_overrides:
  flutter_google_places:
    git:
      url: https://github.com/hoc081098/flutter_google_places.git
      ref: 00159b26b6ccc58792b7273b8e637fefb46d1988

flutter_google_places

pub version

Google places autocomplete widgets for flutter.

Getting Started

For help getting started with Flutter, view our online documentation.

# pubspec.yaml

dependencies:
  flutter:
    sdk: flutter
  flutter_google_places: <last-version>
const kGoogleApiKey = "API_KEY";

Prediction p = await PlacesAutocomplete.show(
                          context: context,
                          apiKey: kGoogleApiKey,
                          mode: Mode.overlay, // Mode.fullscreen
                          language: "fr",
                          components: [new Component(Component.country, "fr")]);

The library use google_maps_webservice library which directly refer to the official documentation for google maps web service.