SKChoiceChip class

Scaled ChoiceChip widget - extends Flutter's ChoiceChip Automatically applies scaling to padding, labelPadding, borderRadius, and elevation Uses cached values for optimal performance

Inheritance

Constructors

SKChoiceChip({Key? key, required Widget label, Widget? avatar, required bool selected, ValueChanged<bool>? onSelected, GestureLongPressCallback? onLongPress, String? tooltip, Clip clipBehavior = Clip.none, FocusNode? focusNode, bool autofocus = false, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? labelPadding, BorderRadius? borderRadius, double? elevation, ShapeBorder? shape})

Properties

autofocus → bool
True if this widget will be selected as the initial focus when no other node in its scope is currently focused.
finalinherited
avatar → Widget?
A widget to display prior to the chip's label.
finalinherited
avatarBorder → ShapeBorder
The shape of the translucent highlight painted over the avatar when the selected property is true.
finalinherited
avatarBoxConstraints → BoxConstraints?
Optional size constraints for the avatar.
finalinherited
backgroundColor → Color?
Color to be used for the unselected, enabled chip's background.
finalinherited
checkmarkColor → Color?
Color of the chip's check mark when a check mark is visible.
finalinherited
chipAnimationStyle → ChipAnimationStyle?
Used to override the default chip animations durations.
finalinherited
clipBehavior → Clip
The content will be clipped (or not) according to this option.
finalinherited
color → WidgetStateProperty<Color?>?
The color that fills the chip, in all WidgetStates.
finalinherited
disabledColor → Color?
The color used for the chip's background to indicate that it is not enabled.
finalinherited
elevation → double?
Elevation to be applied on the chip relative to its parent.
finalinherited
focusNode → FocusNode?
An optional focus node to use as the focus node for this widget.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
iconTheme → IconThemeData?
Theme used for all icons in the chip.
finalinherited
isEnabled → bool
Whether or not this chip is enabled for input.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → Widget
The primary content of the chip.
finalinherited
labelPadding → EdgeInsetsGeometry?
The padding around the label widget.
finalinherited
labelStyle → TextStyle?
The style to be applied to the chip's label.
finalinherited
materialTapTargetSize → MaterialTapTargetSize?
Configures the minimum size of the tap target.
finalinherited
mouseCursor → MouseCursor?
The cursor for a mouse pointer when it enters or is hovering over the widget.
finalinherited
onSelected → ValueChanged<bool>?
Called when the chip should change between selected and de-selected states.
finalinherited
padding → EdgeInsetsGeometry?
The padding between the contents of the chip and the outside shape.
finalinherited
pressElevation → double?
Elevation to be applied on the chip relative to its parent during the press motion.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → bool
Whether or not this chip is selected.
finalinherited
selectedColor → Color?
Color to be used for the chip's background, indicating that it is selected.
finalinherited
selectedShadowColor → Color?
Color of the chip's shadow when the elevation is greater than 0 and the chip is selected.
finalinherited
shadowColor → Color?
Color of the chip's shadow when the elevation is greater than 0.
finalinherited
shape → OutlinedBorder?
The OutlinedBorder to draw around the chip.
finalinherited
showCheckmark → bool?
Whether or not to show a check mark when SelectableChipAttributes.selected is true.
finalinherited
side → BorderSide?
The color and weight of the chip's outline.
finalinherited
surfaceTintColor → Color?
Color of the chip's surface tint overlay when its elevation is greater than 0.
finalinherited
tooltip → String?
Tooltip string to be used for the body area (where the label and avatar are) of the chip.
finalinherited
visualDensity → VisualDensity?
Defines how compact the chip's layout will be.
finalinherited

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
inherited
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited