fysoul17 / google_maps_place_picker

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

how to show card on start #45

Closed bilalhassanqadri closed 4 years ago

bilalhassanqadri commented 4 years ago

1. i want to ask how can i show the card address when the user open map auto goes to current location but the card disappear
2. how can i show error message if the user dose not enable his gps location ?

fysoul17 commented 4 years ago

Hi,

  1. Set [selectInitialPosition] to true.

  2. You need to use another package to 'check' whether the user enabled the GPS or not.

bilalhassanqadri commented 4 years ago

Thank for your answer i got the first one and that is working but when i close the keyboard card disappear again what is the solution for that

bilalhassanqadri commented 4 years ago

is there any way to solve the issue ? when customer close the keyboard the card disappear

fysoul17 commented 4 years ago

Are you using MediaQuery in the PlacePicker widget? If so, it might be causing re-build of the map since MediaQuery forcibly rebuilds the whole widget when the keyboard is shown/hidden. It will be resolved if you remove MediaQuery.

There was a similar issue #30.

bilalhassanqadri commented 4 years ago

unfortunately this method not works for me i have remove the media query , but still card hides after close the keyboard , it dose not hide if user click on done button , it hide when user click on close down arrow button ↓

fysoul17 commented 4 years ago

Closing as the second question is duplicated with #46.