flutter_password_scoring flutter_password_scoring flutter_password_scoring melos

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.

PasswordScoringBuilder(
  handler: kIsWeb
    ? PasswordScoringHandler()
    : PasswordScoringIsolateHandler(),
  loadingPlaceholder: const Center(
    child: CircularProgressIndicator(),
  ),
  builder: (
    BuildContext context,
    Result? data,
    PasswordScoringHandler handler,
  ) {
  /// Call [handler.update] every time user entered password changes
  return Placeholder();
  },
);
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