Skip to content
pubscout

fancy_password_field

3.0.0, released 3 months ago by rodrigobastos.dev

A customizable password input widget with validation rules and strength indicator.

WASM-readyUses material_ui
$ flutter pub add fancy_password_field
Source repository

What it does

Provides a password field that can enforce custom validation rules and display a strength meter. It offers built‑in common rules and allows developers to add their own. The widget is fully customizable via builder callbacks.

AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a password field with built‑in validation and strength feedback
  • You want to define custom password rules or customize the UI of the indicator

Skip it when

  • Your app still uses Flutter's default material widgets (package:flutter/material.dart)
  • You target Flutter versions older than 3.44 or cannot add material_ui

Strengths

  • Highly customizable UI via builder callbacks
  • Includes a set of ready‑made validation rules and strength calculation
  • Supports custom rule creation

Weaknesses

  • Requires migration to the material_ui package, breaking existing imports
  • Only works with Flutter ≥3.44 and Dart ≥3.12
  • Adds an extra dependency (material_ui) to the project

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
2

Add material_ui to pubspec, import material_ui instead of flutter/material.dart, ensure Flutter ≥3.44.0 and Dart ≥3.12.0

import 'package:fancy_password_field/fancy_password_field.dart';
import 'package:material_ui/material_ui.dart';

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: FancyPasswordField(),
      ),
    );
  }
}

Alternatives

Packages that do the same job and could replace fancy_password_field.

Works with

Packages commonly used together with fancy_password_field: ones it builds on, ones built on it, and its own family.