flutter google places
google places – 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.
Comments are closed.