google_places_flutter_api 1.0.2 google_places_flutter_api: ^1.0.2 copied to clipboard
Google places autocomplete customizable widget for flutter. Dart 3 compatible.
google_places_flutter_api #
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.