PinTheme.defaults constructor

const PinTheme.defaults({
  1. BorderRadius borderRadius = BorderRadius.zero,
  2. double fieldHeight = 50,
  3. double fieldWidth = 40,
  4. double borderWidth = 2,
  5. EdgeInsetsGeometry fieldOuterPadding = EdgeInsets.zero,
  6. PinCodeFieldShape shape = PinCodeFieldShape.underline,
  7. Color activeColor = Colors.green,
  8. Color selectedColor = Colors.blue,
  9. Color inactiveColor = Colors.red,
  10. Color disabledColor = Colors.grey,
  11. Color activeFillColor = Colors.green,
  12. Color selectedFillColor = Colors.blue,
  13. Color inactiveFillColor = Colors.red,
  14. Color errorBorderColor = Colors.redAccent,
  15. double activeBorderWidth = 2,
  16. double selectedBorderWidth = 2,
  17. double inactiveBorderWidth = 2,
  18. double disabledBorderWidth = 2,
  19. double errorBorderWidth = 2,
  20. List<BoxShadow>? activeBoxShadows,
  21. List<BoxShadow>? inActiveBoxShadows,
})

Implementation

const PinTheme.defaults({
  this.borderRadius = BorderRadius.zero,
  this.fieldHeight = 50,
  this.fieldWidth = 40,
  this.borderWidth = 2,
  this.fieldOuterPadding = EdgeInsets.zero,
  this.shape = PinCodeFieldShape.underline,
  this.activeColor = Colors.green,
  this.selectedColor = Colors.blue,
  this.inactiveColor = Colors.red,
  this.disabledColor = Colors.grey,
  this.activeFillColor = Colors.green,
  this.selectedFillColor = Colors.blue,
  this.inactiveFillColor = Colors.red,
  this.errorBorderColor = Colors.redAccent,
  this.activeBorderWidth = 2,
  this.selectedBorderWidth = 2,
  this.inactiveBorderWidth = 2,
  this.disabledBorderWidth = 2,
  this.errorBorderWidth = 2,
  this.activeBoxShadows,
  this.inActiveBoxShadows,
});