felixmccuaig/flutter-autocomplete-textfield

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

Cardoso-CHM opened this issue · 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

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

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

Same issue here, I was about to go crazy.

Same thing here, any fix?

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

#96 (comment)

having the same problem

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