OtpPinFieldStyle constructor

const OtpPinFieldStyle({
  1. TextStyle textStyle = const TextStyle(fontSize: 22.0, color: Colors.black),
  2. bool showHintText = false,
  3. String hintText = '0',
  4. Color hintTextColor = Colors.black45,
  5. Color activeFieldBorderColor = Colors.black,
  6. Color defaultFieldBorderColor = Colors.black45,
  7. Color activeFieldBackgroundColor = Colors.transparent,
  8. Color defaultFieldBackgroundColor = Colors.transparent,
  9. Color filledFieldBackgroundColor = Colors.transparent,
  10. Color filledFieldBorderColor = Colors.transparent,
  11. Gradient? activeFieldBorderGradient,
  12. Gradient? filledFieldBorderGradient,
  13. Gradient? defaultFieldBorderGradient,
  14. double fieldPadding = 10.0,
  15. double fieldBorderRadius = 2.0,
  16. double fieldBorderWidth = 2.0,
  17. List<BoxShadow>? activeFieldBoxShadow,
  18. List<BoxShadow>? filledFieldBoxShadow,
  19. 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,
});