flutter_pin_text_field 1.0.0 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);
})