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 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


Add the following dependency to your pubspec.yaml file:

  password_strength_indicator_plus: ^0.0.1

Run flutter pub get to install the package.


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:
  textController: controller,//TextEditingController


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

  textController: controller,
  maxLength: 12,
  minLength: 8,
  successIcon: Iconsax.tick_circle,
  unSuccessIcon: Iconsax.close_circle,
  successWidget: SvgPicture.asset(
    height: 24,
  unSuccessWidget: SvgPicture.asset(
    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.


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!


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