flutter_typeahead icon indicating copy to clipboard operation
flutter_typeahead copied to clipboard

Empty suggestion list render and disappear

Open MartinJLee opened this issue 4 years ago • 8 comments

When the input textbox is empty, the empty suggestion appears then disappears.

MartinJLee avatar May 17 '20 12:05 MartinJLee

Looks like this is the same issue I'm seeing: RheQteK26EGRt9Hh7E

jlubeck avatar May 20 '20 14:05 jlubeck

I've found a work around that seems to fix it, add the following to the TypeAheadField constructor call:

loadingBuilder: (context) => null,

cms103 avatar May 21 '20 08:05 cms103

I've found a work around that seems to fix it, add the following to the TypeAheadField constructor call:

loadingBuilder: (context) => null,

Thank you, it seems address the issue.

MartinJLee avatar May 23 '20 10:05 MartinJLee

I've found a work around that seems to fix it, add the following to the TypeAheadField constructor call:

loadingBuilder: (context) => null,

This is not working for me... I'm still seeing the same issue when used with hideOnEmpty: true

jlubeck avatar May 25 '20 14:05 jlubeck

@jlubeck use keepSuggestionsOnLoading: false also

intkhabahmed avatar Jun 01 '20 11:06 intkhabahmed

@intkhabahmed still happening with keepSuggestionsOnLoading

jlubeck avatar Jun 02 '20 15:06 jlubeck

Btw, strange, I removed this one also and it is not happening anymore

intkhabahmed avatar Jun 02 '20 15:06 intkhabahmed

can try with this. loadingBuilder: (context) => _searchTextController.text.isEmpty ? SizedBox( height: 0, ) : Loading( backgroundColor: Colors.white, ),

KennyChan94P avatar Sep 06 '21 07:09 KennyChan94P