flutter_password_scoring 0.2.0+2 copy "flutter_password_scoring: ^0.2.0+2" to clipboard
flutter_password_scoring: ^0.2.0+2 copied to clipboard

Helper library to score password strength with `dart_zxcvbn` and provide suggestions for improvement.

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.

/// 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();
  },
);
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 #

1
likes
160
pub points
37%
popularity

Publisher

verified publisherinway.dev

Helper library to score password strength with `dart_zxcvbn` and provide suggestions for improvement.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dart_zxcvbn, dart_zxcvbn_language_common, flutter

More

Packages that depend on flutter_password_scoring