google_maps_place_picker icon indicating copy to clipboard operation
google_maps_place_picker copied to clipboard

ios autocomplete select option

Open sunitasavaliya opened this issue 4 years ago • 2 comments

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

sunitasavaliya avatar Nov 09 '20 20:11 sunitasavaliya

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...

daverupp avatar Nov 10 '20 13:11 daverupp

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

sunitasavaliya avatar Nov 10 '20 19:11 sunitasavaliya