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

Helper class to implement FormFieldValidator

simple_form_field_validator #

Simple helper for easily validating form fields.

For example:

          TextFormField(
            controller: _email,
            decoration: const InputDecoration(
              labelText: 'Enter email address to register or sign in.',
              hintMaxLines: 2,
            ),
            keyboardType: TextInputType.emailAddress,
            textCapitalization: TextCapitalization.none,
            textInputAction: TextInputAction.send,
            validator: SValidator.notEmpty(
                        msg: 'Please enter a valid email address.') +
                    SValidator.email(msg: 'Please enter a valid email address.')
                as String? Function(String?)?,
          ),

0
likes
110
pub points
52%
popularity

Publisher

unverified uploader

Helper class to implement FormFieldValidator

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on simple_form_field_validator