v0.1.6flutter_password_strength
适用于 Flutter 的密码强度检查器,支持 Android 和 iOS。
47喜欢 2.5万近 30 天下载140Pub 分数
AndroidiOSWebmacOSWindowsLinux
用于 Flutter 的密码强度检查器。
以下为英文项目原文快照,最新内容请访问 GitHub。
A password strength checker for flutter.
import 'package:flutter_password_strength/flutter_password_strength.dart';
FlutterPasswordStrength(
password: _password,
strengthCallback: (strength){
debugPrint(strength.toString());
}
)
| 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 |
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗