PlDataList class
A list of labels and the values that go with them.
PlDataList(
children: <Widget>[
PlDataListItem(label: Text('Owner'), value: Text('Ada Lovelace')),
PlDataListItem(label: Text('Plan'), value: Text('Team')),
],
)
The panel every detail screen ends with — a plan, an owner, a created date, a
status. It is one thing and its fields, which is what separates it from a
PlTable: a table is many things with the same fields, and a details panel
built as a two-column table claims a row and column relationship that is not
there. It is not a PlList either, which is a run of items of the same kind.
The rows are children rather than data, unlike a PlTable's columns. A
details panel is written out once and read in source order, and every value
in it is a different shape — a chip, a date, an avatar, a link — so a list of
descriptions would be a list of builders.
Each pair is announced together, which is the Dart half of what a <dl> does
in the React build: a label read on its own is a word, and a value read on
its own is a fact nobody can place.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- PlDataList
Constructors
-
PlDataList({required List<
Widget> children, PlassOrientation orientation = PlassOrientation.horizontal, double? labelWidth, bool divider = false, PlassSize? size, PlassDensity? density, Key? key}) -
Creates a data list.
const
Properties
-
children
→ List<
Widget> -
The PlDataListItems.
final
- density → PlassDensity?
-
The space between the rows.
final
- divider → bool
-
Draws a hairline between the rows.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- labelWidth → double?
-
How wide the label column is, while the labels are beside the values.
final
- orientation → PlassOrientation
-
Where the label sits.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → PlassSize?
-
The type scale of the labels and the values.
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