-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
Issue: Input fields keep loosing focus #40
Comments
Hey @jasonlaw, Thanks for the help, you're the best. Seems like I accidentally merged another branch which I was doing some experimental stuff on. |
@jasonlaw To avoid key changing, don't declare the global key inside your build method. |
@danvick, thanks for the quick response. Indeed after moving out from the build method, it works normally now, you are awesome! :) |
Hi, I have the same behavior even if I move the global key in the class. I upgraded the package to the latest version (flutter_form_builder: ^2.0.3). It is impossible to enter a value in the fields. Here is a sample of my code :
Could you please help me with this ? Thanks a lot ! |
Hi @benoitverstraete, |
You could also try converting your widget to a StatefulWidget especially if you want to make use of the data variable to get the result of your form |
Yes, sure :
|
@benoitverstraete I'm quite sorry for the inconveniences. The package, as I later realized has quite a number of issues with state management. That's why I've taken to do complete rewrite coming out as version 3.0.0, in fact I've released a beta version of it just a few hours ago. Feel free to test it out. I doubt if there will be major API changes before it's release |
@danvick Ok, I will take a look at the new version and will open another issue if I encounter some issues. |
Hi @danvick ,
After upgrading to version v2.0, my input fields keep loosing focus.
Below is not from my screen, but the problem is exactly the same.
Below is my code.
The text was updated successfully, but these errors were encountered: