You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[General]: FormBuilderTextField do not disabled validation when set AutovalidateMode.disabled and FormBuilder parent has autovalidateMode != AutovalidateMode.disabled
#1461
Open
4 of 7 tasks
deandreamatias opened this issue
Jan 8, 2025
· 0 comments
When parent widget FormBuilder has property autovalidateMode with AutovalidateMode.always or AutovalidateMode.onUserInteraction and FormBuilderTextField has the property autovalidateMode with value AutovalidateMode.disabled; the FormBuilderTextField validate after the first user validation, like AutovalidateMode.onUserInteraction
Expected Behavior
When FormBuilderTextField has the property autovalidateMode with value AutovalidateMode.disabled, the field won't show the error, event with property autovalidateMode with AutovalidateMode.always or AutovalidateMode.onUserInteraction on parent widget FormBuilder
This would be follow the Flutter's inherited widget convention were the innermost takes priority (flutter/flutter#107350 (comment))
Steps To Reproduce
Run code sample
Write text into FormBuilderTextField
Error: Show error even autovalidateMode on FormBuilderTextField is disabled
deandreamatias
changed the title
[General]:
[General]: FormBuilderTextField do not disabled validation when set AutovalidateMode.disabled and FormBuilder parent has autovalidateMode != AutovalidateMode.disabled
Jan 8, 2025
Is there an existing issue for this?
Package/Plugin version
10.0.0-dev.1
Platforms
Flutter doctor
Flutter doctor
Minimal code example
Code sample
Current Behavior
When parent widget
FormBuilder
has property autovalidateMode withAutovalidateMode.always
orAutovalidateMode.onUserInteraction
andFormBuilderTextField
has the property autovalidateMode with valueAutovalidateMode.disabled
; theFormBuilderTextField
validate after the first user validation, likeAutovalidateMode.onUserInteraction
Expected Behavior
When
FormBuilderTextField
has the property autovalidateMode with valueAutovalidateMode.disabled
, the field won't show the error, event with property autovalidateMode withAutovalidateMode.always
orAutovalidateMode.onUserInteraction
on parent widgetFormBuilder
This would be follow the Flutter's inherited widget convention were the innermost takes priority (flutter/flutter#107350 (comment))
Steps To Reproduce
FormBuilderTextField
FormBuilderTextField
is disabledAditional information
Waiting for solving this on Flutter SDK: flutter/flutter#125766
The text was updated successfully, but these errors were encountered: