JuiChoiceChip class

Widget referente ao ChoiceChip do Conta Justa

Inheritance

Constructors

JuiChoiceChip({Key? key, required bool isSelected, required String label, required ValueChanged<bool> onSelected})

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 MaterialStateProperty<Color?>?
The color that fills the chip, in all MaterialStates.
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
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}) 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