flutter-autocomplete-textfield icon indicating copy to clipboard operation
flutter-autocomplete-textfield copied to clipboard

How to use updateSuggestions? Example please

Open andresinostroza opened this issue 5 years ago • 1 comments

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

andresinostroza avatar Sep 24 '19 19:09 andresinostroza

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.

nabil-hfz avatar May 07 '20 14:05 nabil-hfz