humazed / google_map_location_picker

🌍 Map location picker component for flutter Based on google_maps_flutter
Apache License 2.0
206 stars 310 forks source link

pickLocation() is not defined #32

Closed Ziyad33 closed 4 years ago

Ziyad33 commented 4 years ago

When I try the following code: LocationResult result = await LocationPicker.pickLocation(context, "My_API_Key");

it shows me an error saying the following:

the method 'pickLocation' isn't defined for the class 'LocationPicker'

has the function name been changed? or am I doing something wrong here?

humazed commented 4 years ago

It's a peaking change in v3.0.0 It's replaced by the top-level function showLocationPicker()

Ziyad33 commented 4 years ago

thanks :)