MinimalListSection class
A vertical group of MinimalListTiles divided by hairlines — Minimal's list: no card around it, rules between the rows.
On the page (a full-bleed MinimalScaffold(padding: EdgeInsets.zero)) the
rows run edge to edge at the screen gutter, a rule between each two; in a
column narrower than the window (a laptop's measure) the rules stop on
the rows' keylines instead of running into the page's gutter. The last
row is left bare: what follows the list (the space before the next
section, a card's edge) closes it, and a hairline divides only where
space can't. inset: true stands the group in its own MinimalCard
instead: rows at the card's MinimalCard.inset, the card's edge closing
it. A group placed in a MinimalCard by hand reads the card and takes
the same register, its rows padded only by what the card's own padding
leaves of the inset. The rules are drawn from the rows' laid-out
heights, so a MinimalReveal child that has folded away draws none, and
the last row still showing is the one left bare. gutter: false removes the gutter: the rows take no side padding of their own, so a
group standing in a padded page lines up with everything beside it.
Rule ownership: a MinimalListTile draws no rule of its own — put list rows in a MinimalListSection and it draws them. Form and choice rows (MinimalFormRow, MinimalInputRow, MinimalSelect, MinimalChoiceRow, a compact MinimalDatePicker, MinimalProperty, MinimalActivity) rule themselves and belong in a MinimalFormSection, a MinimalSelectionGroup or a property list, never in a row group, which would draw a second hairline.
MinimalListSection(children: [for (final h in habits) MinimalListTile(title: h.name, meta: '${h.streak}d')])
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- MinimalListSection
Constructors
-
MinimalListSection({Key? key, required List<
Widget> children, bool divided = true, bool gutter = true, bool inset = false, MinimalStyle? style}) -
A group of rows.
const
Properties
-
children
→ List<
Widget> -
Its rows.
final
- divided → bool
-
Hairlines between the rows.
final
- gutter → bool
-
Pad the rows to the group's register (the screen gutter, or the
card's inset); false leaves them at the edge of what holds them.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inset → bool
-
Stand the group in its own card rather than full bleed on the page.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → MinimalStyle?
-
The card's style when inset, over
components.listSection(and thencomponents.card): fill, edge or side, shape (elseshapes.medium). Full bleed, the group has no frame to dress.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