ChipStyle class

Immutable styling configuration shared by all chip widgets.

Available extensions
Annotations

Constructors

ChipStyle({Color? backgroundColor, Color? selectedBackgroundColor, Color? disabledBackgroundColor, Color? textColor, Color? selectedTextColor, Color? disabledTextColor, Color? borderColor, Color? selectedBorderColor, Color? disabledBorderColor, double? borderWidth, double? selectedBorderWidth, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, BorderRadiusGeometry? borderRadius, double? iconSize, TextStyle? textStyle, double? elevation, double? selectedElevation, Color? shadowColor, List<Color>? gradientColors, AlignmentGeometry? gradientBegin, AlignmentGeometry? gradientEnd, Duration? duration, Curve? curve, double? pressedScale})
Creates a chip style.
const

Properties

backgroundColor → Color?
Background color in the default state.
final
borderColor → Color?
Border color in the default state.
final
borderRadius → BorderRadiusGeometry?
Chip corner radius.
final
borderWidth → double?
Border width in the default state.
final
curve → Curve?
Transition curve.
final
disabledBackgroundColor → Color?
Background color when disabled.
final
disabledBorderColor → Color?
Border color when disabled.
final
disabledTextColor → Color?
Text and icon color when disabled.
final
duration → Duration?
Transition duration.
final
elevation → double?
Default elevation.
final
fintech → ChipStyle

Available on ChipStyle, provided by the ChipStyleX extension

High-contrast fintech style.
no setter
gradientBegin → AlignmentGeometry?
Gradient start alignment.
final
gradientColors → List<Color>?
Optional gradient for premium chips.
final
gradientEnd → AlignmentGeometry?
Gradient end alignment.
final
hashCode → int
The hash code for this object.
no setterinherited
iconSize → double?
Icon size used by variants.
final
margin → EdgeInsetsGeometry?
External chip margin.
final
outlined → ChipStyle

Available on ChipStyle, provided by the ChipStyleX extension

Outline-first style.
no setter
padding → EdgeInsetsGeometry?
Internal chip padding.
final
pressedScale → double?
Scale used while pressed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedBackgroundColor → Color?
Background color when selected.
final
selectedBorderColor → Color?
Border color when selected.
final
selectedBorderWidth → double?
Border width when selected.
final
selectedElevation → double?
Elevation when selected.
final
selectedTextColor → Color?
Text and icon color when selected.
final
shadowColor → Color?
Shadow color used by elevation.
final
textColor → Color?
Text and icon color in the default state.
final
textStyle → TextStyle?
Label style.
final

Methods

copyWith({Color? backgroundColor, Color? selectedBackgroundColor, Color? disabledBackgroundColor, Color? textColor, Color? selectedTextColor, Color? disabledTextColor, Color? borderColor, Color? selectedBorderColor, Color? disabledBorderColor, double? borderWidth, double? selectedBorderWidth, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, BorderRadiusGeometry? borderRadius, double? iconSize, TextStyle? textStyle, double? elevation, double? selectedElevation, Color? shadowColor, List<Color>? gradientColors, AlignmentGeometry? gradientBegin, AlignmentGeometry? gradientEnd, Duration? duration, Curve? curve, double? pressedScale}) → ChipStyle
Returns a new style with the provided overrides applied.
merge(ChipStyle? other) → ChipStyle
Merges another style into this one, keeping existing values as defaults.
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