form-validator
form-validator copied to clipboard
Simplest form validation for flutter form widgets
Validation of common idioms via regexp is a tricky business and not something you really want to do yourself. For example, the regexp currently being used to validate emails is...
**Is your feature request related to a problem? Please describe.** If I want to add a custom locale and switch to another local on runtime, When the user change locale,...
Passing `ValidationBuilder()` to validator has this error:  This is my code: ```dart TextField( controller: passwordController, labelText: 'Password', hintText: 'Password', obscureText: true, validator: ValidationBuilder().required().minLength(8).build(), ), ``` And I'm my custom...
I'm planning to release a major update for form_validator to "fix" or "improve" some issues on existing releases. Here's some of goals I'm planning to improve on next version: 1....
I have a textformfield in which i want user can leave that i.e not required field but if it fill should be less than some double value. I have keyboard...
It seems the field is always required final ValidationBuilder validationBuilder = ValidationBuilder().email('Wrong Email Format'); String? _errorText = validationBuilder.build()(null); Result "The field is required" final ValidationBuilder validationBuilder = ValidationBuilder().email('Wrong Email Format');...
**Describe the bug** I am using global validator builder, because i want to have the same locale everywhere. bue i have noticed that whenever i am using the `optional: true`...
ValidationBuilder().required("").build() only works on strings that are null. However when a string is empty "" the validator says that it's valid. I expected an invalid error. 
As far as i'm aware, there is no way to add both a new custom validation rule and localized error message associated. It would be great if we could extend...