google_places_flutter_api

codecov Star on Github Buy Me A Coffee

Google places autocomplete widgets for flutter.

NB: You need to enable billing on your google account to utilize place autocomplete services.

Installation

In the dependencies: section of your pubspec.yaml, add the following line:

dependencies:
  google_places_flutter_api: <latest_version>

Usage

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")]
);

Examples:

Feature Requests and Issues

Please file feature requests and bugs at the issue tracker.