flutter_pin_code_fields 2.2.0 copy "flutter_pin_code_fields: ^2.2.0" to clipboard
flutter_pin_code_fields: ^2.2.0 copied to clipboard

A flutter package which will help you generate customizable pin code fields. Can be used for login pins or OTP.

example/README.md

Flutter Pin Code Fields Example #

Example on how to use the flutter_pin_code_fields package.

Getting Started #

Add dependency in pubspec.yaml file.

dependencies:
    flutter_pin_code_fields: <VERSION>

Examples #

Default Usage #

PinCodeFields(
    length: 4,
    onComplete: (output) {
        // Your logic with pin code
        print(output);
    },
),

Obscure Fields #

PinCodeFields(
    length: 6,
    obscureText: true,
    obscureCharacter: '❌',
    onComplete: (output) {
        // Your logic with pin code
        print(output);
    },
),

Customized Fields #

PinCodeFields(
    length: 4,
    fieldBorderStyle: FieldBorderStyle.Square,
    responsive: false,
    fieldHeight: 130.0,
    fieldWidth: 130.0,
    borderWidth: 5.0,
    activeBorderColor: Colors.teal,
    activeBackgroundColor: Colors.tealAccent,
    borderRadius: BorderRadius.circular(20.0),
    keyboardType: TextInputType.number,
    autoHideKeyboard: false,
    fieldBackgroundColor: Colors.lightGreenAccent,
    borderColor: Colors.lightGreen,
    textStyle: TextStyle(
        fontSize: 30.0,
        fontWeight: FontWeight.bold,
    ),
    onComplete: (output) {
        // Your logic with pin code
        print(output);
    },
),
27
likes
150
points
4.52k
downloads

Publisher

verified publishersanifhimani.com

Weekly Downloads

A flutter package which will help you generate customizable pin code fields. Can be used for login pins or OTP.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_pin_code_fields