简体   繁体   中英

Flutter Getx isn't updating initialValue of TextFormField

清除变量的函数

TextFormField 所在的视图

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM