FLUTTER ECOSYSTEM

JinHoSo/flutter-password-strength

用於 Flutter 的密碼強度檢查器。

flutter-密碼強度 專案封面
Stars
22
Forks
19
最近推送(UTC)
2026年9月18日
專案狀態
未封存
Jin Ho So GitHub avatar
GITHUB User

Jin Ho So ↗

ThinkGateSeoul
語言DartSwiftHTMLKotlinObjective-C

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 2 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

flutter_password_strength

A password strength checker for flutter.

Features

  • Linear strength indicator.
  • Customise colors, borders, etc.

Screenshot

https://media.giphy.com/media/kbuhBEahzQAtifnfSL/giphy.gif

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