Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to search for predefined locations in the Search Bar #49

Open
leoshrey opened this issue May 24, 2021 · 3 comments
Open

How to search for predefined locations in the Search Bar #49

leoshrey opened this issue May 24, 2021 · 3 comments

Comments

@leoshrey
Copy link

I want user to select from predefined locations by fetching from the location list provided by the server side/ api.
So that user can search for a location in the field which is available in the list. Provided that the already selected location can't be selected again.
How can I achieve this with this library?

@leoshrey
Copy link
Author

@vishal-android-freak
Copy link
Contributor

I am afraid, you will have to write a custom implementation with Google maps flutter plugin. This can be easily achieved. You can return the exact lat long of the place searched by the user, in your API response and add a pin to the map on the returned location coordinates.

@leoshrey
Copy link
Author

leoshrey commented May 24, 2021

So, I can use any api for fetching locations to show them in the search bar ?
And will any other component (in this plugin) get affected by doing so ?
And what do you mean by returning lat long here?
Actually I want user to be able to select only those locations which are not already selected by any other user.
Will I be able to use this plugin itself for achieving the desired feature ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants