feat: add formFieldKey and improve validation - #23
Conversation
- Add test case for real-time validation using formFieldKey - Verify validation state changes on text input - Test both valid and invalid input scenarios
|
Thanks for the PR! 🙌 I see you’re trying to validate using |
|
Yes it works @albinpk The thing in my case is that I have to refactor all my entire codebase and wrap all FormField by a Form. 😅 And then the problem is that every this custom widget was used and and had a validation based on In addition to my concern, i think it will be useful to validate single |
|
Thanks for explaining your use case. I’ll merge the PR. |
formFieldKey and improve validation
#23) - Add test case for real-time validation using formFieldKey - Verify validation state changes on text input - Test both valid and invalid input scenarios Co-authored-by: Albin PK <56157868+albinpk@users.noreply.github.com>
Description
This PR adds real-time validation support to
OnscreenKeyboardTextFormFieldby introducing a newformFieldKeyproperty. This enhancement allows developers to access the form field state and implement real-time validation more effectively.Key changes:
formFieldKeyparameter toOnscreenKeyboardTextFormFieldType of change
How Has This Been Tested?
The changes have been verified through the following tests:
formFieldKeyTest Configuration:
Checklist: