macosui / macos_ui

Flutter widgets and themes implementing the current macOS design language.
https://macosui.github.io/macos_ui/#/
MIT License
1.81k stars 178 forks source link

SearchField without icon: Autocomplete #412

Open nbonamy opened 1 year ago

nbonamy commented 1 year ago

Use case

For an app I am developing I need an autocomplete text field which is basically a MacosSearchField without decoration (no magnifier icon, no clear button).

Proposal

I already have a PR ready with the following implementation:

Another more simple implementation would to simply allow prefix and clearButtonMode to be user specified in MacosSearchField.

If you're OK to add this to macos_ui, then tell me which solution you prefer and I'll create a PR.

nbonamy commented 1 year ago

https://github.com/nbonamy/macos_ui/tree/autocomplete