google_map_place_picker 0.0.4 copy "google_map_place_picker: ^0.0.4" to clipboard
google_map_place_picker: ^0.0.4 copied to clipboard

Flutter Package for Google Map Place Picker

Sample Usage #

Import the package into your code

import 'package:place_picker/place_picker.dart';

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,
                        )));
}
6
likes
70
points
50
downloads

Publisher

verified publishertachyonbyte.com

Weekly Downloads

Flutter Package for Google Map Place Picker

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, geolocator, google_maps_flutter, http

More

Packages that depend on google_map_place_picker