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

Widget AutocompleteTextField don't trigger state changes in decoration property.

Open Cardoso-CHM opened this issue 4 years ago • 7 comments

My AutocompleteTextField widget doesn't changes after some code inside decoration property changes (after setState() is called in other widget).

My hintText is not changing after the variable "nextSub" change it's value. My errorText is not changing when variable "_hasError" becomes true.

I don't know if its something about the GlobalKey or maybe is missing some setState inside the class bellow:

Link for better visualization of code: https://pastebin.com/Y2Qkwu71

Cardoso-CHM avatar Jun 30 '20 19:06 Cardoso-CHM

I am also facing this for the errorText not getting updated.

palkesh-jain avatar Jul 17 '20 03:07 palkesh-jain

Exact same problem for me, I could not get a localized hint text. It does not update itself when the AppLocalizations object changes.

flogaribal avatar Sep 04 '20 09:09 flogaribal

Same issue here, I was about to go crazy.

franarolas avatar Sep 23 '20 14:09 franarolas

Same thing here, any fix?

azmasamy avatar Nov 21 '20 20:11 azmasamy

I think this, very special, way of updating the decoration is required to get this kind of functionality.

https://github.com/felixlucien/flutter-autocomplete-textfield/issues/96#issuecomment-717890512

eimermusic avatar Dec 17 '20 07:12 eimermusic

having the same problem

chandeshwarkumar avatar May 04 '21 15:05 chandeshwarkumar

Same problem, impossible to use the errorText String of the decoration to display errors ...

Deedoo64 avatar Feb 28 '24 14:02 Deedoo64