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,
- double activeBorderWidth = 2,
- double selectedBorderWidth = 2,
- double inactiveBorderWidth = 2,
- double disabledBorderWidth = 2,
- double errorBorderWidth = 2,
- List<
BoxShadow> ? activeBoxShadows, - 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,
});