DesignKeylineRegion class

Marks child as a card or a section whose contents share keylines: a keyline is the line that what starts a row (or ends one) sits on, so a card's title, its rows' words, its fields and its dividers start on one line, and its switches, chevrons and selects end on another.

It lays out and paints nothing. A look's own card and section widgets put it around their content once, so every screen built from them is checked; DesignKeylineCheck in package:ui_core_test reads it, and DesignKeylineSheet draws it for review.

A gallery marks each section's column of examples too, with startAligned, so every example starts on the column's edge.

DesignKeylineRegion(label: 'Settings', indents: const [40], child: const Text('Settings'))
Inheritance

Constructors

DesignKeylineRegion({Key? key, String? label, List<double> indents = const [], List<double> trailingIndents = const [], String? mixedHeights, bool startAligned = false, required Widget child})
Marks child.
const

Properties

child → Widget
The card's or the section's content.
final
hashCode → int
The hash code for this object.
no setterinherited
indents → List<double>
The leading keylines allowed besides the first, each this many logical pixels further in: a nested level you mean, such as rows' words after their 40 px avatars.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
What the check and the sheet call it.
final
mixedHeights → String?
Why controls that share a row here may differ in height or centre (a gallery's ladder of one control per size, side by side on purpose); null: they may not. DesignKeylineCheck and DesignRowCheck leave such rows unheld, and name a to-do given here.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startAligned → bool
Whether every row here starts on the leading keyline, however it is aligned: a gallery section's examples, each on its column's edge, where one centred (a stepper, a sum, a line of words centred in its box) or set at the trailing end is off. False (a card, a dialog): a row of one item may stand centred (an empty state) or at the end (a dialog's actions).
final
trailingIndents → List<double>
The same at the trailing side: keylines allowed this many pixels in from the first trailing one.
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.
override
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