FastChoiceChip<T> class
A single FastChoiceChips chip.
- Implemented types
- Annotations
Constructors
-
FastChoiceChip({Widget? label, bool autofocus = false, Widget? avatar, ShapeBorder avatarBorder = const CircleBorder(), Color? backgroundColor, Color? checkmarkColor, Clip clipBehavior = Clip.none, MaterialStateProperty<
Color?> ? color, Color? disabledColor, double? elevation, bool enabled = true, FocusNode? focusNode, IconThemeData? iconTheme, TextStyle? labelStyle, EdgeInsetsGeometry? labelPadding, MaterialTapTargetSize? materialTapTargetSize, ValueChanged<bool> ? onSelected, EdgeInsetsGeometry? padding, double? pressElevation, bool selected = false, Color? selectedColor, Color? selectedShadowColor, Color? shadowColor, OutlinedBorder? shape, bool? showCheckmark, BorderSide? side, Color? surfaceTintColor, String? tooltip, required T value, VisualDensity? visualDensity})
Properties
- autofocus → bool
-
True if this widget will be selected as the initial focus when no other
node in its scope is currently focused.
final
- avatar → Widget?
-
A widget to display prior to the chip's label.
final
- avatarBorder → ShapeBorder
-
The shape of the translucent highlight painted over the avatar when the
selected property is true.
final
- avatarBoxConstraints → BoxConstraints?
-
Optional size constraints for the avatar.
no setterinherited
- backgroundColor → Color?
-
Color to be used for the unselected, enabled chip's background.
final
- checkmarkColor → Color?
-
Color of the chip's check mark when a check mark is visible.
final
- clipBehavior → Clip
-
The content will be clipped (or not) according to this option.
final
-
color
→ MaterialStateProperty<
Color?> ? -
The color that fills the chip, in all MaterialStates.
final
- disabledColor → Color?
-
The color used for the chip's background to indicate that it is not
enabled.
final
- elevation → double?
-
Elevation to be applied on the chip relative to its parent.
final
- enabled → bool
-
final
- focusNode → FocusNode?
-
An optional focus node to use as the focus node for this widget.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconTheme → IconThemeData?
-
Theme used for all icons in the chip.
final
- isEnabled → bool
-
Whether or not this chip is enabled for input.
no setteroverride
- label → Widget
-
The primary content of the chip.
final
- labelPadding → EdgeInsetsGeometry?
-
The padding around the label widget.
final
- labelStyle → TextStyle?
-
The style to be applied to the chip's label.
final
- materialTapTargetSize → MaterialTapTargetSize?
-
Configures the minimum size of the tap target.
final
-
onSelected
→ ValueChanged<
bool> ? -
Called when the chip should change between selected and de-selected
states.
final
- padding → EdgeInsetsGeometry?
-
The padding between the contents of the chip and the outside shape.
final
- pressElevation → double?
-
Elevation to be applied on the chip relative to its parent during the
press motion.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
Whether or not this chip is selected.
final
- selectedColor → Color?
-
Color to be used for the chip's background, indicating that it is
selected.
final
- selectedShadowColor → Color?
-
Color of the chip's shadow when the elevation is greater than 0 and the
chip is 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
- showCheckmark → bool?
-
Whether or not to show a check mark when
SelectableChipAttributes.selected is true.
final
- side → BorderSide?
-
The color and weight of the chip's outline.
final
- surfaceTintColor → Color?
-
Color of the chip's surface tint overlay when its elevation is
greater than 0.
final
- tooltip → String?
-
Tooltip string to be used for the body area (where the label and avatar
are) of the chip.
final
- value → T
-
final
- visualDensity → VisualDensity?
-
Defines how compact the chip's layout will be.
final
Methods
-
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