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, double? activeBorderWidth, double? selectedBorderWidth, double? inactiveBorderWidth, double? disabledBorderWidth, double? errorBorderWidth, PinCodeFieldShape? shape, EdgeInsetsGeometry? fieldOuterPadding, List<
BoxShadow> ? activeBoxShadow, List<BoxShadow> ? inActiveBoxShadow}) -
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, double activeBorderWidth = 2, double selectedBorderWidth = 2, double inactiveBorderWidth = 2, double disabledBorderWidth = 2, double errorBorderWidth = 2, List<
BoxShadow> ? activeBoxShadows, List<BoxShadow> ? inActiveBoxShadows}) -
const
Properties
- activeBorderWidth → double
-
Width of the input fields which have inputs. Default is 2
final
-
activeBoxShadows
→ List<
BoxShadow> ? -
this adds box shadow to specific selected pin code field. Default is none.
final
- 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 - disabledBorderWidth → double
-
Width of the input fields if the PinCodeTextField is disabled. Default is 2
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
- errorBorderWidth → double
-
Width of the input field when in error mode. Default is 2
final
- fieldHeight → double
-
height
for the pin code field. default is50.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 is40.0
final - hashCode → int
-
The hash code for this object.
no setterinherited
- inactiveBorderWidth → double
-
Width of the input fields which don't have inputs. Default is 2
final
-
inActiveBoxShadows
→ List<
BoxShadow> ? -
final
- 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
- selectedBorderWidth → double
-
Width of the input field which is currently selected. Default is 2
final
- 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