form_builder_validators
form_builder_validators copied to clipboard
[TextField]: Password validations
Is there an existing issue for this?
- [x] I have searched the existing issues
Package/Plugin version
9.1.1
What you'd like to happen
I would love to have some more validators for password validations.
- alphanumeric
- alphanumeric with symbols
- alphanumeric with symbols + 1 capital letter
If this becomes too redundant, we can also look at it from another perspective (what it should have)
FormBuilderValidators.shouldHaveAlphabets(atLeast: 1)
FormBuilderValidators.shouldHaveNumbers(atLeast: 1)
FormBuilderValidators.shouldHaveSymbols(atLeast: 1)
Note: I used "atLeast" instead of "min" for better understanding the use of that param.
Alternatives you've considered
I know we can have custom validations, but it becomes readable if we can dive into the form builder ecosystem thoroughly by just seeing existing list validators, instead of seeing list of custom validators.
Aditional information
No response
I know there is a README section that tells us how to raise PR for this but I wanted to discuss which perspective or approach suits the author more.