PinFieldAutoFill(
currentCode: codevalue,
autoFocus: true,
focusNode: myfocusnode,
codeLength: 6,
cursor: Cursor(
width: 2,
height: 20,
color: Colors.red,
radius: Radius.circular(1),
enabled: true,
),
textInputAction: TextInputAction.done,
decoration: BoxLooseDecoration(
radius: Radius.circular(10.0),
bgColorBuilder: FixedColorBuilder(
Color.fromARGB(255, 255, 255, 255)),
strokeColorBuilder: FixedColorBuilder(Colors.black),
gapSpace: 16),
This is my code I just want to add selected and enabled border color in pinfieldautofill()
You can use the package below, customisation is easy too:
You can use pinTheme parameter in the widget to change your pins border or color and shape too. Please see code for implementation: