Last updated:
0 purchases
flutter password scoring
flutter_password_scoring #
❗ THIS PACKAGE IS STILL WORK IN PROGRESS ❗
Description #
The primary goal of this package is to support dart_zxcvbn in Flutter.
This package supplies two kinds of password scoring handlers. The default one
PasswordScoringHandler doesn't use Isolates, so everything runs on main
thread. It is Web friendly (remember no Isolates on Web platform in Flutter),
but it also can block main thread for long time. As an alternative there's also
Isolate based handler which you can use on mobile on native platform.
Usage #
Use PasswordScoringBuilder to build your UI. Take a look at example code if
you wan't to customize dictionaries and other options based on Locale.
/// Keep in mind that when using Isolate based handler it's
/// crucial to keep it final in state, so it won't be
/// recreated on every call to [build].
final handler = kIsWeb
? PasswordScoringHandler()
: PasswordScoringIsolateHandler();
PasswordScoringBuilder(
handler: handler,
loadingPlaceholder: const Center(
child: CircularProgressIndicator(),
),
builder: (
BuildContext context,
Result? data,
PasswordScoringHandler handler,
) {
/// Call [handler.update] every time user entered password changes
return Placeholder();
},
);
copied to clipboard
Related packages #
Package
Details
dart_zxcvbn
README | pub
dart_zxcvbn_language_common
README | pub
dart_zxcvbn_language_en
README | pub
dart_zxcvbn_language_pl
README | pub
flutter_password_scoring
README | pub
License #
see LICENSE
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.