custom_validation 0.0.1+1
custom_validation: ^0.0.1+1 copied to clipboard
Flutter custom validation
Custom Validation Form #
custom_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_validation
in your Flutter project, follow these steps:
-
Add the package to your
pubspec.yaml
file and runflutter pub get
:dependencies: custom_validation: ^0.0.3+1
-
Import the package in your Dart code:
import 'package:custom_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_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_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.