flutter-autocomplete-textfield
flutter-autocomplete-textfield copied to clipboard
Can't access onTap method like TextField
Awesome plugin! Thanks How can I access the onTap method like it is used in Text Field? Is it possible?
I want to list some suggestions if the user taps the autocomplete search field.
I've solved it with:
AutoCompleteTextField<String>(
....
onFocusChanged: (bool focused) => {
if (focused)
{
_autoCompleteKey.currentState.filteredSuggestions =
suggestions
}
},