PlList class

A stack of rows.

PlList(
  dividers: true,
  children: <Widget>[
    PlListItem(onPressed: open, child: const Text('Billing')),
    PlListItem(onPressed: open, child: const Text('Members')),
  ],
)

The list is a sheet and the rows are what is on it, which is the whole reason the two are separate widgets: size and density are properties of the stack, not of any one line in it, and an inherited scope is what carries them down.

The sheet is never dyed. A list holds other people's content, and that content arrives with its own colours; the family reaches a row's wash and its focus ring and stops.

Inheritance

Constructors

PlList({required List<Widget> children, PlassVariant variant = PlassVariant.glass, PlassSize? size, PlassColor? color, PlassDensity? density, PlassElevation elevation = 0, bool dividers = false, Key? key})
Creates a list.
const

Properties

children List<Widget>
The rows.
final
color PlassColor?
Semantic colour role. It reaches a row's wash and its focus ring, never the sheet.
final
density PlassDensity?
How tightly the rows pack.
final
dividers bool
Separates the rows with a hairline instead of with space.
final
elevation PlassElevation
Drop shadow depth, 03.
final
hashCode PlassElevation
The hash code for this object.
no setterinherited
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
size PlassSize?
The rows' type scale and padding. A property of the stack, not of a row.
final
variant PlassVariant
What the sheet is made of.
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