flutter-autocomplete-textfield
flutter-autocomplete-textfield copied to clipboard
How to use updateSuggestions? Example please
Basically I have wrapped the AutoCompleteTextField to add more functionality, but I have no idea how to update the suggestions in this new statefulWidget, When I tried in didUpdateWidget, i get an error
Hi @andresinostroza, If you assign a key object to your AutoCompleteTextField widget, you can call something like this on your key whenever you want to update Suggestions ===>
key.currentState.updateSuggestions(List<T> items).
I hope this help.