OtpPinFieldStyle constructor
const
OtpPinFieldStyle({
- TextStyle textStyle = const TextStyle(fontSize: 18.0, color: Colors.black),
- Color activeFieldBorderColor = Colors.black,
- Color defaultFieldBorderColor = Colors.black45,
- Color activeFieldBackgroundColor = Colors.transparent,
- Color defaultFieldBackgroundColor = Colors.transparent,
- Color filledFieldBackgroundColor = Colors.transparent,
- Color filledFieldBorderColor = Colors.transparent,
- double fieldPadding = 10.0,
- double fieldBorderRadius = 2.0,
- double fieldBorderWidth = 2.0,
Implementation
const OtpPinFieldStyle({
this.textStyle = const TextStyle(fontSize: 18.0, color: Colors.black),
this.activeFieldBorderColor = Colors.black,
this.defaultFieldBorderColor = Colors.black45,
this.activeFieldBackgroundColor = Colors.transparent,
this.defaultFieldBackgroundColor = Colors.transparent,
this.filledFieldBackgroundColor = Colors.transparent,
this.filledFieldBorderColor = Colors.transparent,
this.fieldPadding = 10.0,
this.fieldBorderRadius = 2.0,
this.fieldBorderWidth = 2.0,
});