pin_entry_text_field 0.1.1 copy "pin_entry_text_field: ^0.1.1" to clipboard
pin_entry_text_field: ^0.1.1 copied to clipboard

outdated

Fully customizable Pin Entry TextField for flutter, This widget accepts pin of any length and it detects the entry of the last pin, which it then calls the provided callback passing the entered pin as [...]

example/pin_entry_text_field_example.dart

import 'package:flutter/material.dart';
import 'package:pin_entry_text_field/pin_entry_text_field.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: PinEntryTextField(
            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()
    );
  }
}
35
likes
0
pub points
85%
popularity

Publisher

unverified uploader

Fully customizable Pin Entry TextField for flutter, This widget accepts pin of any length and it detects the entry of the last pin, which it then calls the provided callback passing the entered pin as String argument.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on pin_entry_text_field