in ,

An amazing password strength checker for flutter

flutter password strength

Data breaches and identity theft are on the rise, and the cause is often compromised passwords. After stealing credentials, cybercriminals can use passwords to steal your important information and steal more of their personally identifiable information (PII) such as their names, addresses, and bank account information. Here is a password strength checker for Flutter with a basic interface and some useful functions. It can help you now. 

flutter_password_strength

Features

Here, we highlight some important features of this tool.

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

Usage

  import 'package:flutter_password_strength/flutter_password_strength.dart';

  FlutterPasswordStrength(
    password: _password, 
    strengthCallback: (strength){
      debugPrint(strength.toString());
    }
  )

Arguments

ArgumentsDefaultTypeDescription
passwordrequiredStringPassword
widthnulldoubleStrength bar width
height5doubleStrength bar height
strengthColorsnullTweenSequence<Color>0.0 ~ 0.25 : red, 0.26 ~ 0.5 : yellow, 0.51 ~ 0.75 : blue, 0.76 ~ 1 : green
backgroundColorColors.greyColorbackground for strength bar
radius0doubleStrength bar radius
duration3000DurationAnimation duration
strengthCallbacknullvoid Function(double strength)Strength callback, return between 0 to 1

GitHub

https://github.com/flutter-password-strength

Written by James

A flutter package that will help you to generate pin code fields

A beautiful password manager built using Flutter