PinTheme class

Constructors

PinTheme({Color? activeColor, Color? selectedColor, Color? inactiveColor, Color? disabledColor, Color? activeFillColor, Color? selectedFillColor, Color? inactiveFillColor, Color? errorBorderColor, BorderRadius? borderRadius, double? fieldHeight, double? fieldWidth, double? borderWidth, PinCodeFieldShape? shape, EdgeInsetsGeometry? fieldOuterPadding})
factory
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})
const

Properties

activeColor Color
Colors of the input fields which have inputs. Default is Colors.green
final
activeFillColor Color
Colors of the input fields which have inputs. Default is Colors.green
final
borderRadius BorderRadius
Border radius of each pin code field
final
borderWidth double
Border width for the each input fields. Default is 2.0
final
disabledColor Color
Colors of the input fields if the PinCodeTextField is disabled. Default is Colors.grey
final
errorBorderColor Color
Color of the input field when in error mode. Default is Colors.redAccent
final
fieldHeight double
height for the pin code field. default is 50.0
final
fieldOuterPadding EdgeInsetsGeometry
this defines the padding of each enclosing container of an input field. Default is 0.0
final
fieldWidth double
width for the pin code field. default is 40.0
final
hashCode int
The hash code for this object.
no setterinherited
inactiveColor Color
Colors of the input fields which don't have inputs. Default is Colors.red
final
inactiveFillColor Color
Colors of the input fields which don't have inputs. Default is Colors.red
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedColor Color
Color of the input field which is currently selected. Default is Colors.blue
final
selectedFillColor Color
Color of the input field which is currently selected. Default is Colors.blue
final
shape PinCodeFieldShape
this defines the shape of the input fields. Default is underlined
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited