flutter_form_builder
flutter_form_builder copied to clipboard
feat: Perform focus and scroll when invalidated based on autoFocusOnValidationFailure and shouldScrollToInvalidField
Closes #955.
Adds an additional field shouldScrollToInvalidField which defaults to false. On master, this is essentially this PR with shouldScrollToInvalidField set to true. However, due to issues such as #955, I've set it to default to true.
Can be add tests please?
Can be add tests please?
Sure. Will do it over the weekend.
Nice! Thanks a lot @pongloongyeat for your contribution 🚀
Getting a little lost on writing tests to detect for scrolling. Could anyone point me in the right direction?
Getting a little lost on writing tests to detect for scrolling. Could anyone point me in the right direction?
Hi @pongloongyeat, Has some methods to tests scroll with widgets. Take a look to this and related