blackmann / locationpicker

Location picker for Flutter.
Other
169 stars 162 forks source link

Selected location result always null #14

Closed ahmadkq closed 4 years ago

ahmadkq commented 4 years ago

When viewing the location picker, the selected location and the result always null

Simulator Screen Shot - iPhone Xʀ - 2019-12-06 at 23 13 32

blackmann commented 4 years ago

Hi @ahmadkq, do you just go back or you tap on the selected location??

ahmadkq commented 4 years ago

Hi, I do select a point in the map but the "Unnamed location" doesn't change! When i click the it the returns i null. I don't click back.

blackmann commented 4 years ago

Hmm, @ahmadkq . Can you please look at the debug logs to see if there's an error? If there is, please post it here so I can help

dhorajiaabhishek commented 4 years ago

Me too getting this error , It always return null. there is nothing in log, NO exception.

blackmann commented 4 years ago

I have rerun tests and I do not face this issues. May I see the code used to start the place picker??

@dhrojiaabhishek @ahmadkq

dhorajiaabhishek commented 4 years ago

Sorry , it resoled I was getting this error You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started

blackmann commented 4 years ago

@ahmadkq could you please try and enable billing for your API keys just as @dhorajiaabhishek indicated?

ahmadkq commented 4 years ago

@blackmann I already have my billing enabled. I can see this error when navigating to place picker page "flutter: RangeError (index): Invalid value: Valid value range is empty: 0"

DanielSmith1239 commented 4 years ago

I am experiencing the same issue. Any luck?

ahmadkq commented 4 years ago

I have fixed it. You need to enable the Geocoding API also

dinojw10 commented 4 years ago

I have the same problem and have already enabled the Grocoding API, however the problem still persist. Any advise? im new to flutter