Custom Validation Form
custom_form_validation
is a customizable validation class for your Flutter project. It
provides a validation. This class simplifies the process of creating and customizing validations in your Flutter
applications.
Platform Support
Android ✔️ iOS ✔️ Web ✔️
Installation
To use custom_form_validation
in your Flutter project, follow these steps:
-
Add the package to your
pubspec.yaml
file and runflutter pub get
:dependencies: custom_form_validation: ^0.0.3+2
-
Import the package in your Dart code:
import 'package:custom_form_validation/custom_validation.dart';
Usage
To create a customized text input field with validation using custom_text_form_field_plus
, you can
use the CustomTextFormField
widget and the provided Validations
class for validation functions.
Here's an example:
import 'package:custom_form_validation/custom_validation.dart';
TextFormField(
validator: (value)=>Validator.validateMobile(value),),
TextFormField(
validator: (value)=>Validator.validateName(value),),
TextFormField(
validator: (value)=>Validator.validateAddress(value),),
Check example folder for more.
Customizations
custom_form_validation
provides various customization options through its class. You
can customize attributes like add your validations in your local and many more to suit your
application's requirements.
Author
If you have any questions or need assistance, please feel free to contact the author.