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

outdated

A utility package for form field validations

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
30
pub points
54%
popularity

Publisher

unverified uploader

A utility package for form field validations

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_form_field_validator