password_strength_indicator_plus 0.0.1 copy "password_strength_indicator_plus: ^0.0.1" to clipboard
password_strength_indicator_plus: ^0.0.1 copied to clipboard

This Flutter plugin offers a password strength indicator widget with 5 seperate conditions.

password_strength_indicator_plus #

A Flutter plugin that offers a password strength indicator widget to ensure strong password requirements in your Flutter applications. The widget enforces 5 crucial rules for password strength, accompanied by a visual progress indicator to guide users in creating secure passwords.

password_strength_indicator_plus_screenshot_1

Features #

  • Password Strength Rules: The widget enforces 5 crucial rules for strong passwords:

    1. Minimum Length
    2. Uppercase Letters
    3. Lowercase Letters
    4. Special Characters
    5. Numbers (Digits)
  • Real-time Feedback: Provides real-time feedback to users as they type their password, indicating their progress in meeting the specified requirements.

  • Password Strength Indicator: Visual progress indicator that visually represents the strength of the entered password.

  • Customization: Easily customize the password validation rules and the appearance of the widget to match your application's requirements.

password_strength_indicator_plus Demo

Installation #

Add the following dependency to your pubspec.yaml file:

dependencies:
  password_strength_indicator_plus: ^0.0.1

Run flutter pub get to install the package.


Usage #

Import the package in your Dart code:

import 'package:password_strength_indicator_plus/password_strength_indicator_plus.dart';

Use the PasswordStrengthIndicatorPlus widget in your widget tree:
PasswordStrengthIndicatorPlus(
  textController: controller,//TextEditingController
)

Customization #

You can customize the password strength indicator widget by providing different parameters to the PasswordStrengthIndicatorPlus constructor:

PasswordStrengthIndicatorPlus(
  textController: controller,
  maxLength: 12,
  minLength: 8,
  successIcon: Iconsax.tick_circle,
  unSuccessIcon: Iconsax.close_circle,
  successWidget: SvgPicture.asset(
    "assets/icons/tick.svg",
    height: 24,
  ),
  unSuccessWidget: SvgPicture.asset(
    "assets/icons/close.svg",
    height: 24,
  ),
  textSize: 16,
  hideRules: true,
),
  • textController: Set the TextEditingController of your password text field here.
  • minLength: Set the minimum required length for the password.
  • maxLength: Set the maximum allowed length for the password.
  • hideRules: Set to true to hide the password validation rules.
  • successIcon: Customize the icon displayed for a successful validation rule.
  • unSuccessIcon: Customize the icon displayed for an unsuccessful validation rule.
  • successWidget: Customize the widget displayed for a successful validation rule.
  • unSuccessWidget: Customize the widget displayed for an unsuccessful validation rule.
  • textSize: Adjust the text size of the validation rule and icon.

Example #

For a complete example of how to use this plugin, check out the example folder in this repository.

Issues and Feedback #

If you encounter any issues or have suggestions for improvement, please open an issue on our GitHub repository. We welcome your feedback!

License #

This project is licensed under the MIT License - see the LICENSE file for details.

2
likes
160
pub points
66%
popularity

Publisher

unverified uploader

This Flutter plugin offers a password strength indicator widget with 5 seperate conditions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on password_strength_indicator_plus