flutter_pw_validator
2.1.0, released 3 days ago by arefmozafari.com
Live password validation widget with progress bar, checklist, and Unicode-aware rules.
What it does
Displays a checklist and progress bar under any TextField that update on every keystroke to show which password rules are met or unmet. It supports Unicode characters, custom rules, NIST policies, password generation, and form validation.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need live visual feedback for password creation requirements in a sign-up or change-password form.
- You want to share the exact same password policy validation logic between your Flutter frontend and Dart backend.
Skip it when
- You only need standard form validation without real-time checklist and progress UI elements.
Strengths
- Unicode-aware counting for multi-script, emoji, and accented passwords.
- Shareable password rules package with backend support.
- Extensively customizable UI, animations, strength labels, and custom item builders.
Weaknesses
- Limited to password validation and checklist UI use cases.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
FlutterPwValidator(
controller: controller,
rules: const PasswordRules(
minLength: 8,
uppercase: 1,
lowercase: 1,
digits: 1,
special: 1,
),
onSuccess: () => setState(() => canSubmit = true),
onFail: () => setState(() => canSubmit = false),
)Alternatives
Packages that do the same job and could replace flutter_pw_validator.
- acanthis
A type-safe and composable data validation library for Dart and Flutter.
75Compare - fform
Build forms with fields, validations, and state management in Flutter.
67Compare - form_validator
Simplest form validation library for Flutter's form field widgets.
50Compare - best_form_validator
Zero-initialization form field validators for Flutter with 52 countries and 25 languages.
72Compare