SegmentedInputStyle class
Styling configuration for SegmentedInput component.
Constructors
- SegmentedInputStyle({Dim? segmentWidth, Dim? segmentHeight, Dim? gap, BorderData? border, BorderRadiusData? borderRadius, Color? hoverBorderColor, Color? focusBorderColor, Color? errorBorderColor, Color? backgroundColor, Color? filledBackgroundColor, TextStyle? textStyle, SegmentedInputShape shape = SegmentedInputShape.box, EdgeInsets? margin, EdgeInsets? padding})
-
Creates a SegmentedInputStyle instance.
const
Properties
- backgroundColor → Color?
-
Background color of empty segments.
final
- border → BorderData?
-
Border decoration of each segment.
final
- borderRadius → BorderRadiusData?
-
Radius of segment corners.
final
- errorBorderColor → Color?
-
Border color of segment when validation fails.
final
- filledBackgroundColor → Color?
-
Background color of filled segments.
final
- focusBorderColor → Color?
-
Border color of segment when focused.
final
- gap → Dim?
-
Gap/spacing between segment boxes.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hoverBorderColor → Color?
-
Border color of segment when hovered.
final
- margin → EdgeInsets?
-
Margin around the segmented input wrapper.
final
- padding → EdgeInsets?
-
Padding around each segment box.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- segmentHeight → Dim?
-
Height of each individual segment box.
final
- segmentWidth → Dim?
-
Width of each individual segment box.
final
- shape → SegmentedInputShape
-
Shape variant of the segments (box, underline, circle).
final
- textStyle → TextStyle?
-
Typography style for the text/digits inside segments.
final
Methods
-
copyWith(
{Dim? segmentWidth, Dim? segmentHeight, Dim? gap, BorderData? border, BorderRadiusData? borderRadius, Color? hoverBorderColor, Color? focusBorderColor, Color? errorBorderColor, Color? backgroundColor, Color? filledBackgroundColor, TextStyle? textStyle, SegmentedInputShape? shape, EdgeInsets? margin, EdgeInsets? padding}) → SegmentedInputStyle - Creates a copy of this SegmentedInputStyle with the given fields replaced.
-
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.
override