flutter_pin_text_field 1.0.0 copy "flutter_pin_text_field: ^1.0.0" to clipboard
flutter_pin_text_field: ^1.0.0 copied to clipboard

A simple pin text box that supports customization of cursor, border, font, etc

A simple pin text box that supports customization of cursor, border, font, etc

Getting started #

read install tab

Usage #

object

PinTextField PinTextField({
  Key? key,
  int count = 6,
  double height = 42.0,
  double width = 42.0,
  Color cursorColor = const Color.fromRGBO(255, 96, 10, 1),
  Color fontColor = const Color.fromRGBO(0, 0, 0, 1),
  double fontSize = 16,
  double borderWidth = 1.0,
  Color borderColor = const Color.fromRGBO(204, 204, 204, 1),
  double focusBorderWidth = 1.0,
  Color focusBorderColor = const Color.fromRGBO(100, 105, 110, 1),PinTextFieldBorderType borderType = PinTextFieldBorderType.Underline,
  String finishedStringSeparator = "",
  void Function(String)? onFinished,
})

usage

PinTextField(
    borderType: PinTextFieldBorderType.Underline,
    finishedStringSeparator: ",",
    onFinished: (value) {
        print(value);
    })

example

0
likes
100
pub points
21%
popularity

Publisher

unverified uploader

A simple pin text box that supports customization of cursor, border, font, etc

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_pin_text_field