flutter_form_field_validator 1.0.0 copy "flutter_form_field_validator: ^1.0.0" to clipboard
flutter_form_field_validator: ^1.0.0 copied to clipboard

The flutter-form-field-validator package comes with several common validations and removes the boiler plate code from your project.

flutter_form_field_validator #

The flutter-form-field-validator package comes with several common validations and removes the boiler plate code from your project.

Features #

  • Contains several common validations
  • Supports chaining of validators to write concise code
  • Easy to use and removes boiler plate code from your project

Version compatibility #

See CHANGELOG for changes.

Git hub #

You can reference the git repo directly if you want:

git: https://github.com/srikanthmadasu/flutter_form_field_validator

Example Project #

TextFormField(
    validator: (value) {
        return FieldValidator('Abc')
            .minLength(1, 'min length is 1')
            .maxLength(10, 'max length is 10')
            .hasMinOneLowerCase('must have one lower case')
            .hasMinOneUpperCase('must have one upper case')
            .hasANumber('must have a number')
            .validate();
    },
    onChanged: (val) => {}
),

For more detailed examples please check example project in the example folder.

4
likes
60
pub points
26%
popularity

Publisher

unverified uploader

The flutter-form-field-validator package comes with several common validations and removes the boiler plate code from your project.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_form_field_validator