google_map_place_picker

Last updated:

0 purchases

google_map_place_picker Image
google_map_place_picker Images
Add to Cart

Description:

google map place picker

Sample Usage #
Import the package into your code
import 'package:place_picker/place_picker.dart';
copied to clipboard
Create a method like below, A LocationResult will be returned
with the name and lat/lng of the selected place. You can then handle the result in any way you want.
Pass in an optional LatLng displayLocation to display that location instead. This is useful when you want the map
to display the previously selected location.
void showPlacePicker() async {
LocationResult result = await Navigator.of(context).push(MaterialPageRoute(
builder: (context) => MapLocationPicker(
"ADD-API-KEY-HERE",
languageCode: "en_us",
autoCompleteRegion: "in",
autoCompleteComponents: "country:in",
autoTheme: true,
)));
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.