ChoiceChipThemeData class

A style that overrides the default appearance of ChoiceChip and ChoiceChip widgets when used with HeaderTheme or with the overall FilterListTheme's FilterListThemeData.choiceChipTheme.

See also:

Mixed in types

Constructors

ChoiceChipThemeData({TextStyle? selectedTextStyle = const TextStyle(color: Colors.white), TextStyle? textStyle, Color? selectedBackgroundColor = const Color(0xFF649BEC), Color? backgroundColor = const Color(0xfff8f8f8), VisualDensity? visualDensity, double? elevation, BorderSide? side, BorderSide? selectedSide, OutlinedBorder? shape, OutlinedBorder? selectedShape, Color? shadowColor = Colors.black, Color? selectedShadowColor = Colors.black, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? labelPadding = const EdgeInsets.symmetric(horizontal: 4.0), EdgeInsetsGeometry margin = const EdgeInsets.symmetric(horizontal: 10.0)})
Builds a ChoiceChipThemeData.
const
ChoiceChipThemeData.dark()
factory
ChoiceChipThemeData.light(BuildContext context)
factory

Properties

backgroundColor Color?
Color to be used for the unselected, unselected chip's background.
final
elevation double?
Elevation to be applied on the chip relative to its parent.
final
hashCode int
The hash code for this object.
no setteroverride
labelPadding EdgeInsetsGeometry?
The padding around the label widget.
final
margin EdgeInsetsGeometry
The margin around choice chip
final
padding EdgeInsetsGeometry?
The padding between the contents of the chip and the outside shape.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedBackgroundColor Color?
Color to be used for the selected, selected chip's background.
final
selectedShadowColor Color?
Color of the chip's shadow when the elevation is greater than 0 and the chip is selected.
final
selectedShape OutlinedBorder?
The OutlinedBorder to draw around selected the chip.
final
selectedSide BorderSide?
The color and weight of the selected chip's outline.
final
selectedTextStyle TextStyle?
TextStyle for chip when selected.
final
shadowColor Color?
Color of the chip's shadow when the elevation is greater than 0.
final
shape OutlinedBorder?
The OutlinedBorder to draw around the chip.
final
side BorderSide?
The color and weight of the chip's outline.
final
textStyle TextStyle?
TextStyle for chip when not selected.
final
visualDensity VisualDensity?
Defines how compact the chip's layout will be.
final

Methods

copyWith({TextStyle? selectedTextStyle, TextStyle? selectedChipTextStyle, TextStyle? textStyle, Color? selectedTextBackgroundColor, Color? selectedBackgroundColor, Color? backgroundColor, VisualDensity? visualDensity, double? elevation, BorderSide? side, BorderSide? selectedSide, OutlinedBorder? shape, OutlinedBorder? selectedShape, Color? shadowColor, Color? selectedShadowColor, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? labelPadding, EdgeInsetsGeometry? margin}) ChoiceChipThemeData
Creates a copy of this theme, but with the given fields replaced with the new values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
lerp(ChoiceChipThemeData a, ChoiceChipThemeData b, double t) ChoiceChipThemeData
Linearly interpolates between two ChoiceChipThemeData.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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