https://github.com/jinhoso/flutter-password-strength
A password strength checker for flutter.
https://github.com/jinhoso/flutter-password-strength
animation flutter password strength
Last synced: 4 months ago
JSON representation
A password strength checker for flutter.
- Host: GitHub
- URL: https://github.com/jinhoso/flutter-password-strength
- Owner: JinHoSo
- License: mit
- Created: 2019-12-03T08:22:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2026-01-27T12:29:07.000Z (4 months ago)
- Last Synced: 2026-01-28T00:20:19.590Z (4 months ago)
- Topics: animation, flutter, password, strength
- Language: Dart
- Size: 83 KB
- Stars: 22
- Watchers: 1
- Forks: 19
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter_password_strength
A password strength checker for flutter.
## Features
- Linear strength indicator.
- Customise colors, borders, etc.
## Screenshot

## Usage
```
import 'package:flutter_password_strength/flutter_password_strength.dart';
FlutterPasswordStrength(
password: _password,
strengthCallback: (strength){
debugPrint(strength.toString());
}
)
```
### Arguments
| Arguments | Default | Type | Description |
| :------------ |---------------:| :---------------| :-----|
| password | required | String | Password |
| width | null | double | Strength bar width |
| height | 5 | double | Strength bar height |
| strengthColors | null | TweenSequence | `0.0 ~ 0.25 : red, 0.26 ~ 0.5 : yellow, 0.51 ~ 0.75 : blue, 0.76 ~ 1 : green` |
| backgroundColor | Colors.grey| Color | background for strength bar |
| radius | 0 | double | Strength bar radius |
| duration | milliseconds: 300 | Duration | Animation duration |
| strengthCallback | null | `void Function(double strength)` | Strength callback, return between 0 to 1 |