custom_validation 0.0.1+1 copy "custom_validation: ^0.0.1+1" to clipboard
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:

  1. Add the package to your pubspec.yaml file and run flutter pub get:

        dependencies:
          custom_validation: ^0.0.3+1 
    
  2. 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.

0
likes
130
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter custom validation

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, flutter_datetime_picker, intl

More

Packages that depend on custom_validation