MinimalKitRow class

One 32 px row of an open list or menu (an option, a menu item, an action). A chosen value is said as Minimal says a choice: its words in the full ink at medium weight, with the accent check; in a list that picks one (choosing) the other options stay in the muted ink. The active row (the keyboard's, or the pointer's: an open list follows the pointer) takes the muted fill, a place and not a choice, so it never reads as a second chosen row; a destructive action the destructive ink.

Inheritance

Constructors

MinimalKitRow({Key? key, required Set<WidgetState> states, required String label, IconData? icon, Widget? leading, Widget? trailing, bool checked = false, bool choosing = false, bool destructive = false, double start = MinimalSpacing.s8, MinimalStyle? style})
A row of a list a ui_core behaviour drives.
const

Properties

checked → bool
Whether it is chosen: its check, and its words in the full ink at medium weight.
final
choosing → bool
Whether it is one option of a list that picks one: unchosen, its words stay in the muted ink, so the chosen one reads at a glance.
final
destructive → bool
Whether it is destructive, in the destructive ink.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
A glyph before the label.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String
What the row says.
final
leading → Widget?
A widget before the label, in place of icon.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start → double
The air before its glyph or words: 8, or what a select's list sets so an option's words start where the field's value does.
final
states → Set<WidgetState>
The row's states from its behaviour: focused (the active row), selected, disabled.
final
style → MinimalStyle?
Its style, over components.menu.
final
trailing → Widget?
A widget after the label: a shortcut, a count, a chevron.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
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