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

Check Your Filed More Easy Way.

Features #

TODO: You can easily validate your all filed with list and get warning message if had

  • Zero dependency
  • Extensible
  • Well tested
  • Open source

Getting started #

TODO: List prerequisites and provide or point to information on how to start using the package.

Installation #

Add body_validate as dependency to your flutter project by adding this lines to pubspec.yaml.

dependencies:
  body_validate: "0.0.1"

Then run flutter pub get to install required dependencies.

Usage #

 List<ForValidate> validateBodyList = [
          ForValidate(CheckFiled.isEmpty, [], cTitle.text, "", "Please enter title"),
          ForValidate(CheckFiled.isEmpty, [], cDesc.text, "", "Please enter description"),
          ForValidate(CheckFiled.isEmpty, [], selectMission ?? "", "", "Please select mission"),
          ForValidate(CheckFiled.isEmpty, [], cStartDate.text, "", "Please select startdate"),
          ForValidate(CheckFiled.isEmpty, [], imageFile.path, "", "Please select image"),
];
        final result = await FiledValidate().validateFileds(validateBodyList);

Additional information #

If you would like to support this library you could translate messages to your own language.

3
likes
120
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

Check Your Filed More Easy Way.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on body_validate