fysoul17 / google_maps_place_picker

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

Question: Disabling the search/autocomplete bar #171

Open LukeStonehm opened 2 years ago

LukeStonehm commented 2 years ago

Good day,

I've been looking through the options, but I don't see a way to disable to search bar. It is possible to do so? If not, could I extend the class to do so?

Thanks in advance <3

martin-braun commented 2 years ago

Out of curiosity, why would you want to do that?

LukeStonehm commented 2 years ago

@martin-braun basically just want the marker / picker functionality. I've already got a bunch of UI relating to autocomplete that would replace the built-in.

martin-braun commented 2 years ago

@LukeStonehm A great portion of this package contains the auto complete widget.

If I get it right, you also need to be able to set the place from outside, since you have your own auto complete.

I wonder if it really makes sense to use this package instead of just using the Google Maps one yourself then? Do you even need the dragging of the picker on the map?

If you have your own auto complete and use this package, you would probably have redundancy when it comes to the geolocator.

Maybe you could take an hour and check the code of this package to see if it really makes sense to use this package. I'd love to here your thoughts on that. Please don't just say it makes sense to outsource some work load. I consider to expand this package, but it just needs to make sense and I also need to figure out how to implement it properly, so it works for you.

I'm not convinced, yet, but if I start to be convinced, I will definitely look into this for my fork that is also available on pub.dev. There are a few possible scenarios in my head, like having the ability to provide a builder for the auto complete widget, or exposing the geo locator, a visibility toggle and the target location that the picker will animate to.

Thanks.