smart_textform_validator 1.0.0
smart_textform_validator: ^1.0.0 copied to clipboard
A simple and reusable Flutter package for validating text form fields. Includes common validators like required, email, password strength, min/max length, pattern match, and more. Also provides a fl [...]
textform_validator #
textform_validator
is a lightweight and powerful Flutter package that provides reusable and readable validators for TextFormField
. It includes common validators and a builder to chain multiple validations in a clean and structured way.
✨ Features #
- ✅ Required field check
- 📧 Email format validation
- 🔐 Password strength check
- 🔢 Minimum and maximum length
- 🔄 Matching two values (e.g., password & confirm password)
- 🔍 Pattern-based validation
- 🧱 Chain multiple validators using
ValidatorBuilder
🚀 Installation #
Add to your pubspec.yaml
:
dependencies:
textform_validator: ^1.0.0