fysoul17 / google_maps_place_picker

Place picker on Google Maps for Flutter
MIT License
222 stars 357 forks source link

ios autocomplete select option #82

Open sunitasavaliya opened 3 years ago

sunitasavaliya commented 3 years ago

Hey

Everything working fine both android and ios .but In Ios when i search something on search bar and select autocomplete option,pin(marker) shows perfact location but the address text is not changing its shows only loading in real iphone and simulator both

daverupp commented 3 years ago

There is already a post about this. Best is, when you use the selectedPlaceWidgetBuilder.

selectedPlaceWidgetBuilder: (builderContext, selectedPlace, state, isSearchBarFocused) { print(state); if (selectedPlace != null) { state = SearchingState.Idle; } ....

There you have to set the state to IDLE when selectedPlace is not null. The if statement is needed to avoid a render error when loading the map...

I hope this helps...

sunitasavaliya commented 3 years ago

Thanks @daverupp My ios loadding problem solved!! but In Ios when i search something on search bar and select autocomplete option,pin(marker) shows perfact location but the address text is not changing in real iphone and simulator both