NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #4474 most downloaded on pub.dev
Live password rules under any TextField: a progress bar and a checklist of the rules still unmet, with Unicode-aware counting and rules you can reuse in forms.
Latest stable
2.0.0
Last release 1 months ago
20 Oct 2026
Ships unpredictably
gaps range from 2 weeks to 3.4 years
Nearly every release is documented
notes for 13 of 13 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
13 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
A rewrite from scratch. Breaking changes are listed under Migration.
A rewrite from scratch. Breaking changes are listed under Migration.
password_rules package,PasswordRules holds the counts and any further PasswordRule, withvalidate(password) returning a PasswordValidation (results,isValid, failed, score, strength), formValidator() for aTextFormField, and generate() for a password that passes every rule.maxLength, CustomRule, CommonPasswordsRule over the SecLists top-1000MatchRule for a confirmation field, and PasswordRules.nist() forPasswordRule subclass with its owntest.onChanged with the full validation, strengthOf to plug an entropylistenables to re-check when anotherbarStyle: PasswordBarStyle.continuous, one track that fills with thevalidate() finds the password invalidshakeOnInvalid).@Preview widget previews in the example.FlutterPwValidatorStrings is now an alias of PasswordRuleStrings;.persian() is a complete Persian set with Persian digits, and ruleMetruleNotMet serve screen readers.minLength countsanimationDuration, 200 ms by default, zero whenradio_button_unchecked before any text,check_circle for a passing rule, cancel for a failing one, eachneutralIcon, successIcon and failureIcon.showStrengthLabel shows Weak, Fair, Good or Strong above the bar; thePasswordValidation.strength.itemBuilder and barBuilder to draw the rows or the bar yourself.textStyle, padding, spacing, barThickness, showBar and showListcolorScheme.outline before any text,colorScheme.error for a failing rule, bodyMedium for the labels.FlutterPwValidatorStrings takes one function per rule and one for theflutter_lints, a GitHub Actions workflow and pub.devstrings, rules or controller on a mounted widget is appliedminLength, normalCharCount, uppercaseCharCount, lowercaseCharCount,numericCharCount and specialCharCount moved intorules: PasswordRules(minLength:, letters:, uppercase:, lowercase:, digits:, special:).width and height are gone; the widget fills the available width andSizedBox to constrain it.onSuccess is optional.FlutterPwValidatorStrings(uppercase: (count) => '...')"- Uppercase letter" fields.lib/src/; import onlypackage:flutter_pw_validator/flutter_pw_validator.dart.Your coding agent can read these notes before it upgrades. Set up the MCP server →
New Feature: Validation for lowercase letters. Thanks to BrunoPereira
New Feature: Add Key property to access to the validate function (See the example)
New Feature: Validation for normal letters. Thanks to jeffersonmello
BUG FIX: setState() called after dispose(). Thanks to Money1998
* Readme Updated
New Feature: Added an OnFail callback that gets called everytime the password doesn't match.
Support for i18n, to translate conditions. Thanks to HugoHeneault
Support for _ (Underscore) as special character. Thanks to adithyaakrishna
* Sound null safety added.
* README updated.
* documents updated.
* Initial release.
One column per quarter.