OtpPinFieldStyle constructor

const OtpPinFieldStyle({
  1. TextStyle textStyle = const TextStyle(fontSize: 18.0, color: Colors.black),
  2. Color activeFieldBorderColor = Colors.black,
  3. Color defaultFieldBorderColor = Colors.black45,
  4. Color activeFieldBackgroundColor = Colors.transparent,
  5. Color defaultFieldBackgroundColor = Colors.transparent,
  6. Color filledFieldBackgroundColor = Colors.transparent,
  7. Color filledFieldBorderColor = Colors.transparent,
  8. double fieldPadding = 10.0,
  9. double fieldBorderRadius = 2.0,
  10. 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,
});