Closed Aga-C closed 3 years ago
You're right. I've now replaced Dropdown
menus with searchable menus.
I think that it could work a bit better. Now user has to delete the whole textbox and write anything to get any suggestions. That's not exactly what I was thinking about. Maybe it would be better if it would select the text on focus, or clear the input on the start.
Also, there is another option. After some searching, I've found two components for searchable dropdowns for Flutter. I think, one of these would be even better solution:
They offer both at once - selecting from the list and searching for a proper item.
I tried to do those things without installing additional packages.
Note: it won't work in Polish. Just in English. I'll try to fix that.
I think it's fixed now.
It looks better, but I still see some issues:
Are you sure you don't want to use any of the ready solutions? I think it would be easier and faster to achieve full functionality of dropdown-search this way.
This is fixable
It's not shown because a one was typed before. Changing that behavior on the first click is possible though.
Is it the padding that your talking about?
This is fixable.
the AutoComplete widget is so customizable. The app's design is somewhat different from regular android apps. I need that customizability. However, if it turned out to be complicated. Yeah, I will switch to the packages.
I've fixed the issues above. However, There is a limitation with AutoComplete that I didn't find a real solution for it yet.
You can see here that the fromLanguage
options' container can be stretched more to the right:
However, I can't stretch the toLanguage
options' container to the left:
I can't move it behind the red line:
A workaround for it is by wrapping the text:
Super, it looks and works good 👍
Hi,
It would be very useful to add a search field for a languages lists, especially that there are many languages to choose. Here is an example how it could be done: https://www.woolha.com/tutorials/flutter-using-autocomplete-widget-examples