form-validator icon indicating copy to clipboard operation
form-validator copied to clipboard

Simplest form validation for flutter form widgets

Results 14 form-validator issues
Sort by recently updated
recently updated
newest added

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: ![image](https://user-images.githubusercontent.com/15264938/167026524-605c6de9-7b47-4508-8244-f58a0de26263.png) 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. ![image](https://user-images.githubusercontent.com/2345541/118688944-d0f58d00-b806-11eb-95dd-7295c9a97d9f.png)

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...