-
-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not change field value in form #14
Comments
Noted. Working on that. |
The field widgets are stateful widgets, so you can't change the state from the parent widget, I think a callback would serve this purpose. |
Hi @danvick, |
Hello @926, This is a known issue with stateless widget but I haven't given it much priority since in most cases the form is used within a stateful widget in order to collect data after submission. Thanks for your contribution, I'll find time to look into it. |
@danvick thank but it is already in a StatefulWidget. |
There is no way to change the field value once they are created, I have create a form with fields initially, then some user interaction will change the status, but all the fields remain the same regardless that I call setState(), in the build function I can see the status data have been changed.
Looking into source code, it looks like the field control state is not recreated and is associated with the attribute as key.
The text was updated successfully, but these errors were encountered: