ExpressiveDataTable<R> class
The rows a DesignTableController holds, a page at a time, under a
header that sorts (shadcn's DataTable; Material's data table): rows
in the list item's grammar, as ExpressiveTable's, at least 56dp tall,
a hairline between each, a chosen row on the list's selected container
(secondaryContainer), the state layer filling the row's own square,
the focus ring inside it. With selectable a checkbox stands before
each row and a tristate one before the header, which takes the page.
A sortable header is a pill: its label and an arrow pointing the sort's
way, its state layer on the pill, its target 48dp tall. Past one page,
ExpressivePagination stands under the rows.
The keys are ui_core's: one tab stop for the rows, Up and Down between them, Home and End, Space or a press selects, Shift with either a run, Ctrl or Cmd with A the page, Enter runs onActivate. Give it a bounded width: the columns share it (columnFlex).
ExpressiveDataTable<String>(controller: orders, cellBuilder: (context, order, column) => Text(order))
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ExpressiveDataTable
Constructors
-
ExpressiveDataTable({required DesignTableController<
R> controller, required Widget cellBuilder(BuildContext context, R row, DesignTableColumn<R> column), bool selectable = true, ValueChanged<R> ? onActivate, Map<String, int> columnFlex = const <String, int>{}, Key? key}) -
A table of
controller's rows.const
Properties
-
cellBuilder
→ Widget Function(BuildContext context, R row, DesignTableColumn<
R> column) -
A cell: usually a
Text, which takes the row's type and colour.final -
columnFlex
→ Map<
String, int> -
Each column's share of the width by its id; 1 when absent.
final
-
controller
→ DesignTableController<
R> -
The rows, columns, sort, filter, selection and page.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onActivate
→ ValueChanged<
R> ? -
A row's Enter, or its press when rows are not chosen.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectable → bool
-
Whether rows are chosen, each with its checkbox.
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