Can use validate
method from FormBuilderState
or FormBuilderFieldState
and invalidate
method from FormBuilderFieldState
.
One property of these methods is autoScrollWhenFocusOnInvalid
.
Take in account that in the case of ListView and similar widgets, not all children are rendered at the same time. Some, the ones farthest from the index displayed on the screen, are rendered only when the user scrolls. Ref: https://github.com/flutter-form-builder-ecosystem/flutter_form_builder/discussions/1408
PS: I'm the mainly maintainer of flutter_form_builder package