form_easy_validator

Last updated:

0 purchases

form_easy_validator Image
form_easy_validator Images
Add to Cart

Description:

form easy validator

This package provides easy form validation for common fields in Flutter applications, such as email and phone numbers. It allows users to customize validation rules and error messages, and supports multiple locales for error messages.
Features #

Easy form validation for common fields (email, phone, etc.).
Customizable validation rules and error messages.
Support for multiple locales for error messages.

Getting started #
In the dependencies: section of your pubspec.yaml, add the following line:
dependencies:
form_easy_validator: ^
copied to clipboard
Usage #

import 'package:flutter/material.dart';
import 'package:form_easy_validator/form_easy_validator.dart';

void main() {
runApp(MyApp());
}

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: FormEasyValidator(
padding: EdgeInsets.all(16),
text: 'Email', // Add the text for the label
validator: (value) => FormEasyValidator().validateEmail(value),
appLocale: Locale('en', 'US'),
textCapitalization: TextCapitalization.none,
),
),
);
}
}
copied to clipboard
Additional information #
For more information about this package and how to use it, you can refer to the documentation.
Contribution #
We welcome contributions to this package! If you find any issues or have suggestions for improvements, please feel free to file an issue or submit a pull request on https://github.com/JesutoniAderibigbe/form_easy_validator.
License #
This project is licensed under the MIT License - see the LICENSE file for details.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.