Last updated:
0 purchases
password strength indicator plus
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.
Features #
Password Strength Rules: The widget enforces 5 crucial rules for strong passwords:
Minimum Length
Uppercase Letters
Lowercase Letters
Special Characters
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.
Installation #
Add the following dependency to your pubspec.yaml file:
dependencies:
password_strength_indicator_plus: ^0.0.1
copied to clipboard
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';
copied to clipboard
Use the PasswordStrengthIndicatorPlus widget in your widget tree:
PasswordStrengthIndicatorPlus(
textController: controller,//TextEditingController
)
copied to clipboard
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,
),
copied to clipboard
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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.