auto_validating_text_field 0.1.4

Flutter Android iOS web

To validate text field as soon as its value changes. We can add list of validators for different cases and it shows error message depending upon the conditions unsatisfied.

auto_validating_text_field #

A Flutter package which validates text field dynamically as soon as value changes. You can give list of validators as shown below in example to dynamically validate according to the validators.

Usage #

To use this package, add

auto_validating_text_field :

as a dependency in your pubspec.yaml file.

Example #

AutoValidatingTextFormField(
  decoration: InputDecoration(
  hintText: "Full Name",
  ),
  focusNode: _fullNameFocusNode,
  controller: _fullNameController,
  validators: [
    Validators.required(),
    Validators.pattern("^[a-zA-Z ]*\$",
      errorText: "Full Name cannot contains special characters."),
  ]
);

Please see the example app of this package for a full example in https://github.com/rmsh03dhj/auto_validating_text_field/tree/master/example/lib.

0
likes
90
pub points
59%
popularity

To validate text field as soon as its value changes. We can add list of validators for different cases and it shows error message depending upon the conditions unsatisfied.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

dhoju.ramesh03@gmail.com

License

MIT (LICENSE)

Dependencies

flutter, rxdart

More

Packages that depend on auto_validating_text_field