OtpPinFieldStyle constructor
const
OtpPinFieldStyle({
- TextStyle textStyle = const TextStyle(fontSize: 22.0, color: Colors.black),
- bool showHintText = false,
- String hintText = '0',
- Color hintTextColor = Colors.black45,
- Color activeFieldBorderColor = Colors.black,
- Color defaultFieldBorderColor = Colors.black45,
- Color activeFieldBackgroundColor = Colors.transparent,
- Color defaultFieldBackgroundColor = Colors.transparent,
- Color filledFieldBackgroundColor = Colors.transparent,
- Color filledFieldBorderColor = Colors.transparent,
- Gradient? activeFieldBorderGradient,
- Gradient? filledFieldBorderGradient,
- Gradient? defaultFieldBorderGradient,
- double fieldPadding = 10.0,
- double fieldBorderRadius = 2.0,
- double fieldBorderWidth = 2.0,
- List<
BoxShadow> ? activeFieldBoxShadow, - List<
BoxShadow> ? filledFieldBoxShadow, - List<
BoxShadow> ? defaultFieldBoxShadow,
Implementation
const OtpPinFieldStyle({
this.textStyle = const TextStyle(fontSize: 22.0, color: Colors.black),
this.showHintText = false,
this.hintText = '0',
this.hintTextColor = Colors.black45,
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.activeFieldBorderGradient,
this.filledFieldBorderGradient,
this.defaultFieldBorderGradient,
this.fieldPadding = 10.0,
this.fieldBorderRadius = 2.0,
this.fieldBorderWidth = 2.0,
this.activeFieldBoxShadow,
this.filledFieldBoxShadow,
this.defaultFieldBoxShadow,
});