-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
How to only show validation errors on change #65
Comments
+1 |
Is there a solution to this since the issue was closed? |
I have the same problem? |
Forms processing in Flutter is probably it’s weakest. This package will not help you. Some day someone will write a Formik or Finalform like the JavaScript world has. It’s very hard and tedious in Flutter. For modest (a few simple controls) forms it’s doable. You must create and manage the focusNodes for each control to generate an ‘onBlur’ and ‘isDirty’ etc and then hook these into your validation logic. For serious business form processing ... forget it |
@stocksp thanks for that input. I agree with your points, focusNodes is also quite complicated for that simple logic. @danvick thanks for your good work with this package. Can you check on this topic again? It feels like the biggest problem for me right now using your validations. |
If autovalidate is true on the FormBuilder:
All validation errors are shown for the whole form as soon as one control is edited.
If autovalidate is false on the FormBuilder but true on the FormBuilderXX widgets
all validation errors are show as soon as the form loads.
Both of these are wrong.
Validation errors should only be show when the widget is changed. So the user is only shown one error at a time at the moment they make the edit.
Submit should not be enabled if the form is not valid.
Can this be achieved in Flutter (I hope) ?
The text was updated successfully, but these errors were encountered: