Brayan Bertan
Brayan Bertan

Reputation: 31

Flutter Getx isn't updating initialValue of TextFormField

The function that cleans the variables

The view where the TextFormField is

If i use the same variable in a Text Widget it works but not on TextFormField.

Upvotes: 3

Views: 772

Answers (1)

Hooman
Hooman

Reputation: 793

initialValue as its name indicates is TextFormField's initial text and rebuilding TextFormField with new initialValue doesn't have any effect. you can use controller instead of initialValue: Article

Upvotes: 1

Related Questions