flutter_form_field_validator 1.0.0

Flutter Android iOS web

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.

1
likes
100
pub points
58%
popularity

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

Documentation

API reference

Uploader

srikanth.madasu@gmail.com

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_form_field_validator