0 purchases
custom form validation
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
✅
Installation #
To use custom_form_validation in your Flutter project, follow these steps:
Add the package to your pubspec.yaml file and run flutter pub get:
dependencies:
custom_form_validation : ^0.0.5
copied to clipboard
Import the package in your Dart code:
import 'package:custom_form_validation/custom_validation.dart';
copied to clipboard
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';
copied to clipboard
TextFormField(
validator: (value)=>Validator.validateMobile(value),
),
TextFormField(
validator: (value)=>Validator.validateName(value),
),
TextFormField(
validator: (value)=>Validator.validateAddress(value),
),
copied to clipboard
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 #
Dhiraj Chandel
If you have any questions or need assistance, please feel free to contact the author.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.