body_validate 0.0.1
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.