Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Allow customizing prefix and suffix widgets for the searchbox using builder functions #47

Open
jagged3dge opened this issue Jan 20, 2023 · 3 comments
Labels
state:wanthelp This issue cannot be addressed by the main maintainer, but PRs are welcome type:enhancement This is an enhancement that could or will be implemented

Comments

@jagged3dge
Copy link

Is your feature request related to a problem? Please describe.
There could be situations when the app designers want different look for the default search bar that appears on the map.
For example, this could be a client-approved mockup from the designers:
image

From the code I can see that the search box is hardcoded to have an IconButton as the prefix and a simple SizedBox as the suffix.

Describe the solution you'd like
It'd be really great to have this flexible enough to allow for custom widgets to be displayed before and after the autocomplete field.

Describe alternatives you've considered
The current alternative is to fork the repo and create these myself.

@jagged3dge jagged3dge changed the title Allow the builder for the searchbox prefix and suffix widgets Allow builder functions for the searchbox prefix and suffix widgets Jan 20, 2023
@jagged3dge jagged3dge changed the title Allow builder functions for the searchbox prefix and suffix widgets Allow customizing prefix and suffix widgets for the searchbox using builder functions Jan 20, 2023
@martin-braun
Copy link
Member

We need an autoCompleteSearchBuilder (and perhaps an autoCompleteSearchPredicionOverlayBuilder) that allows to build an own search bar (and prediction overlay) with the most customization potential.

If this was provided, one could simply build own components for the UI, while the logic is still contained in the AutoCompleteSearch component.

@martin-braun martin-braun added the type:enhancement This is an enhancement that could or will be implemented label Jan 21, 2023
@artkinx
Copy link

artkinx commented Jun 8, 2023

We need an autoCompleteSearchBuilder (and perhaps an autoCompleteSearchPredicionOverlayBuilder) that allows to build an own search bar (and prediction overlay) with the most customization potential.

If this was provided, one could simply build own components for the UI, while the logic is still contained in the AutoCompleteSearch component.

@martin-braun Can I look into this?

@martin-braun
Copy link
Member

martin-braun commented Jun 14, 2023

@artkinx I'm currently trying to keep this in maintain mode only, as I am too busy to further develop this widget. A PR would be much appreciated.

@martin-braun martin-braun added the state:wanthelp This issue cannot be addressed by the main maintainer, but PRs are welcome label Jul 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
state:wanthelp This issue cannot be addressed by the main maintainer, but PRs are welcome type:enhancement This is an enhancement that could or will be implemented
Projects
None yet
Development

No branches or pull requests

3 participants