smart_textform_validator ✨🔧
A simple and reusable Flutter package for validating text form fields with common validators like required, email, password strength, min/max length, pattern matching, and more — plus a fluent API via ValidatorBuilder
. 🚀
Features ✔️
- ✅ Required field validation
- ✅ Email format validation (note: does not support some incorrect email types) ✉️
- ✅ Password strength validation: requires uppercase, digits, special characters 💪🔐
- ✅ Min/max length validation
- ✅ Pattern matching (RegEx)
- ✅ Fluent chaining of multiple validators with
ValidatorBuilder
🔗
Important Notes ⚠️
- ❌ Does NOT support all incorrect or malformed email types (use a dedicated email validator for complex cases)
- 🔒 Password strength enforces at least: one uppercase letter, one digit, and one special character
- 🚫 This package only provides validators, it does NOT control UI features like hiding password input
- 🚫 Does not provide UI components; only validators for form fields
Installation 📦
Add this to your pubspec.yaml
:
dependencies:
smart_textform_validator: ^1.0.5