humazed / google_map_location_picker

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

Unable to get address #76

Closed fardeen9983 closed 4 years ago

fardeen9983 commented 4 years ago

The following is the code is sed to fetch LocationResult:

 LocationResult locResult =   await showLocationPicker(context, googleAPI);

The logs

I/flutter ( 3232): package:google_map_location_picker/src/map.dart 331:7 | GeolocationStatus.granted
I/flutter ( 3232): package:google_map_location_picker/src/map.dart 331:7 | GeolocationStatus.granted
I/chatty  ( 3232): uid=10697(app.brentt.locallo) Thread-14 identical 1 line
I/flutter ( 3232): package:google_map_location_picker/src/map.dart 331:7 | GeolocationStatus.granted
W/.brentt.locall( 3232): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
I/flutter ( 3232): package:google_map_location_picker/src/map.dart 331:7 | GeolocationStatus.granted
I/chatty  ( 3232): uid=10697(app.brentt.locallo) Thread-14 identical 11 lines
I/flutter ( 3232): package:google_map_location_picker/src/map.dart 331:7 | GeolocationStatus.granted
I/flutter ( 3232): package:google_map_location_picker/src/map.dart 331:7 | GeolocationStatus.granted
I/chatty  ( 3232): uid=10697(app.brentt.locallo) Thread-14 identical 3 lines
I/flutter ( 3232): package:google_map_location_picker/src/map.dart 331:7 | GeolocationStatus.granted
I/flutter ( 3232): RangeError (index): Invalid value: Valid value range is empty: 0
I/flutter ( 3232): RangeError (index): Invalid value: Valid value range is empty: 0
I/chatty  ( 3232): uid=10697(app.brentt.locallo) Thread-14 identical 2 lines
I/flutter ( 3232): RangeError (index): Invalid value: Valid value range is empty: 0
I/flutter ( 3232): package:google_map_location_picker/src/map.dart 331:7 | GeolocationStatus.granted
I/flutter ( 3232): RangeError (index): Invalid value: Valid value range is empty: 0
I/flutter ( 3232): package:google_map_location_picker/src/map.dart 331:7 | GeolocationStatus.granted
I/flutter ( 3232): RangeError (index): Invalid value: Valid value range is empty: 0

The above logs are just repeated over and over again. Also, the address bar in the maps page keeps on loading and returns null on done action. Also, do I need to enable places API for search. If I am correct it is not free, right?

humazed commented 4 years ago

delicate of #16