PinTheme.defaults constructor
const
PinTheme.defaults({
- BorderRadius borderRadius = BorderRadius.zero,
- double fieldHeight = 50,
- double fieldWidth = 40,
- double borderWidth = 2,
- EdgeInsetsGeometry fieldOuterPadding = EdgeInsets.zero,
- PinCodeFieldShape shape = PinCodeFieldShape.underline,
- Color activeColor = Colors.green,
- Color selectedColor = Colors.blue,
- Color inactiveColor = Colors.red,
- Color disabledColor = Colors.grey,
- Color activeFillColor = Colors.green,
- Color selectedFillColor = Colors.blue,
- Color inactiveFillColor = Colors.red,
- 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,
});