password_strength_checker 🔐💪
A modern and customizable Flutter widget to validate and visualize password strength using emojis, tips, and collapsible guidance. Make password creation fun and secure!
✨ Features
- 🔥 Live password strength feedback
- 💡 Collapsible tips section for better UX
- 🎨 Fully customizable UI: colors, emojis, tip messages
- ✅ Clean and modern design
📸 Preview
Coming soon: Add a gif or screenshot of the widget in action!
🚀 Getting Started
Add the dependency in your pubspec.yaml:
dependencies:
password_strength_checker: ^1.0.0
Import the package:
import 'package:password_strength_checker/password_strength_checker.dart';
Then use it like this:
final TextEditingController _passwordController = TextEditingController();
final ValueNotifier<PasswordStrengthItem?> _strengthNotifier = ValueNotifier(null);
PasswordStrengthChecker(
strength: _strengthNotifier,
configuration: PasswordStrengthCheckerConfiguration(
colors: [Colors.red, Colors.orange, Colors.yellow, Colors.lightGreen, Colors.green],
labels: ['Very Weak', 'Weak', 'Fair', 'Strong', 'Very Strong'],
emojis: ['😢', '😕', '😐', '😊', '💪'],
),
)
🛠️ Customization Options
| Property | Description |
|---|---|
colors |
List of colors for each strength level |
labels |
List of labels for each strength level |
emojis |
List of emojis for each strength level |
showTips |
Show/hide tips section |
labelStyle |
TextStyle for labels |
tipStyle |
TextStyle for tips |
emojiSize |
Size of emoji |
📦 Example
Check out the /example folder for a working demo:
final TextEditingController _passwordController = TextEditingController();
final ValueNotifier<PasswordStrengthItem?> _strengthNotifier = ValueNotifier(null);
PasswordStrengthChecker(
strength: _strengthNotifier,
configuration: PasswordStrengthCheckerConfiguration(
colors: [Colors.red, Colors.orange, Colors.yellow, Colors.lightGreen, Colors.green],
labels: ['Very Weak', 'Weak', 'Fair', 'Strong', 'Very Strong'],
emojis: ['😢', '😕', '😐', '😊', '💪'],
),
)
📄 LICENSE
MIT License
MIT License
Copyright (c) 2025 Abhishek Vetma
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
👨💻 Author
Made with ❤️ by Abhishek Verma
If you like this package, give it a ⭐ on pub.dev
📢 Feedback & Contributions
If you have ideas, suggestions, or want to contribute — pull requests and issues are welcome!