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,
})

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,
});