custom_pin_entry_field 2.0.3 copy "custom_pin_entry_field: ^2.0.3" to clipboard
custom_pin_entry_field: ^2.0.3 copied to clipboard

A fully user customizable Pin Entry Field.

example/custom_pin_entry_field_example.dart

import 'package:custom_pin_entry_field/custom_pin_entry_field.dart';
import 'package:flutter/material.dart';

class ExamplePinEntry extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Pin Entry Example"),
      ),
      body: Container(
        child: Padding(
          padding: const EdgeInsets.all(8.0),
          child: CustomPinEntryField(
            showFieldAsBox: true,
            onSubmit: (String pin) {
              showDialog(
                  context: context,
                  builder: (context) {
                    return AlertDialog(
                      title: Text("Pin"),
                      content: Text('Pin entered is $pin'),
                    );
                  }); //end showDialog()
            }, // end onSubmit
          ), // end PinEntryTextField()
        ), // end Padding()
      ), // end Container()
    );
  }
}
7
likes
120
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A fully user customizable Pin Entry Field.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on custom_pin_entry_field