pin_entry_field 0.0.4 pin_entry_field: ^0.0.4 copied to clipboard
Customized Pin Entry Text field for flutter. Uses a hidden TextField to handle input, hence behaves much in the same was as an TextField on the screen and supports similar features.
pin_entry_field #
Customized Pin Entry Text field for flutter.
Example #
PinEntryField(
inputType: PinInputType.none | PinInputType.password | PinInputType.custom,
pinInputCustom: "-", ///Only use for input type is PinInputType.custom
onSubmit: (text) {
print(text);
},
fieldCount: 4,
fieldWidth: 50,
height: 60,
fieldStyle: PinEntryStyle(
textStyle: TextStyle(
color: Colors.white,
fontSize: 20,
fontWeight: FontWeight.w600
),
fieldBackgroundColor: Colors.orangeAccent,
fieldBorder: Border.all(
color: Colors.pink,
width: 2,
),
fieldBorderRadius: BorderRadius.circular(10),
fieldPadding: 20
),
)