passwordformfield 0.0.1+1 copy "passwordformfield: ^0.0.1+1" to clipboard
passwordformfield: ^0.0.1+1 copied to clipboard

A customizable password input widget with rule validation

PasswordFormField #

A customizable password input widget with rule validation

Getting Started #

Installation #

  • add dependency

        dependencies:
            passwordformfield: 0.0.1
    
  • import package

    import 'package:passwordformfield/password_form_field.dart';
    
  • Implementation

     PasswordFormField(
        fieldHintText: "Password",
        focusColor: Colors.yellow,
        patterns: [
            FieldPattern(label: '8 characters minimum', pattern: RegExp(r'[a-zA-Z0-9]{8}')),
            FieldPattern(label: 'start with uppercase', pattern: RegExp(r'^[A-Z]')),
            FieldPattern(label: 'contain 3 uppercase letter', pattern: RegExp(r'(.*[A-Z]){3}')), // exactly 3 uppercase letter
           ],
        border: const OutlineInputBorder(),
      ),
    

Pattern Customization #

For proper validation beyond limit, FieldPattern is made available.

Note: Make sure your rule(s) is correct, the package validate with only regular expression passed nothing more.

Sample #

passwordfield.png passwordfield_filled.png
0
likes
140
pub points
0%
popularity

Publisher

unverified uploader

A customizable password input widget with rule validation

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on passwordformfield