FieldStyleChip class

Style configuration for chip-based selection fields.

Provides styling options for chip widgets including colors, borders, text styles, and spacing. Supports both selected and unselected states with customizable visual appearance for each state.

Inheritance

Constructors

FieldStyleChip({Color? backgroundColor, Color? selectedColor, double? headerSpacing = 5.0, double? footerSpacing = 5.0, OutlinedBorder shape = defaultShape, BorderSide unselectedSide = defaultUnselectedSide, BorderSide selectedSide = defaultSelectedSide, TextStyle labelStyle = defaultLabelStyle, TextStyle unselectedTextStyle = defaultUnselectedTextStyle, TextStyle selectedTextStyle = defaultSelectedTextStyle, EdgeInsets padding = defaultPadding, double runSpacing = 8.0, double spacing = 8.0, Color checkmarkColor = defaultCheckmarkColor, MaterialTapTargetSize materialTapTargetSize = MaterialTapTargetSize.shrinkWrap, Color shadowColor = Colors.transparent, Color surfaceTintColor = Colors.transparent, bool showTitle = true})

Properties

backgroundColor ↔ Color?
getter/setter pair
checkmarkColor ↔ Color
getter/setter pair
footerSpacing ↔ double?
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
headerSpacing ↔ double?
getter/setter pairinherited
labelStyle ↔ TextStyle
getter/setter pair
materialTapTargetSize ↔ MaterialTapTargetSize
getter/setter pair
padding ↔ EdgeInsets
getter/setter pair
runSpacing ↔ double
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedColor ↔ Color?
getter/setter pair
selectedSide ↔ BorderSide
getter/setter pair
selectedTextStyle ↔ TextStyle
getter/setter pair
shadowColor ↔ Color
getter/setter pair
shape ↔ OutlinedBorder
getter/setter pair
showTitle ↔ bool
Whether the field's name is shown above the chips.
getter/setter pair
spacing ↔ double
getter/setter pair
surfaceTintColor ↔ Color
getter/setter pair
unselectedSide ↔ BorderSide
getter/setter pair
unselectedTextStyle ↔ TextStyle
getter/setter pair

Methods

copyWith({double? headerSpacing, double? footerSpacing}) → FieldStyle?
inherited
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

Constants

defaultCheckmarkColor → const Color
The checkmark color when none is given.
defaultLabelStyle → const TextStyle
The label style when none is given.
defaultPadding → const EdgeInsets
The padding inside a chip when none is given.
defaultSelectedSide → const BorderSide
The border of a selected chip when none is given.
defaultSelectedTextStyle → const TextStyle
The text style of a selected chip when none is given.
defaultShape → const OutlinedBorder
The chip shape when none is given: fully rounded. Left as is, chips take the theme's NyFieldColors; the same goes for the other default… values below.
defaultUnselectedSide → const BorderSide
The border of an unselected chip when none is given.
defaultUnselectedTextStyle → const TextStyle
The text style of an unselected chip when none is given.