jifalops / simple_autocomplete_formfield

A Flutter widget that wraps a TextFormField and assists with autocomplete functionality.
MIT License
42 stars 16 forks source link

Show selected value on focus lost #12

Open ddcovery opened 4 years ago

ddcovery commented 4 years ago

When I write something that is not on the list and field lost the focus, How can I force field to "show" the really selected value?

Actully, when field lost focus (or I press "return" key), I receive the "onChanged" with the correct value (the last one I selected or null), but text shown on field doesn't match with the selected value... it shows the incomplete text I wrote: The only way to show correct text is clicking on the list.

Addition: The itemToString method is evocated, but resulting string is not shown