blackmann / locationpicker

Location picker for Flutter.
Other
167 stars 159 forks source link

Feature request | Show previously selected location #10

Closed moriswala closed 4 years ago

moriswala commented 4 years ago

Same picker could be reused to show selected location to the user with little enhancement. Can we have something like

**LatLng location = LatLng(12.000000, 11.000000);**
result = await Navigator.of(context).push(MaterialPageRoute(
          builder: (context) =>
              PlacePicker(Constants.GOOGLE_API_KEY, **location**)));
blackmann commented 4 years ago

This is a great idea @moriswala . Will make that change today.

blackmann commented 4 years ago

@moriswala this issue has been addressed.

Pass in an optional displayLocation to PlacePicker constructor to enable this feature.