TableView class

Material-style widget that displays its content in a both vertically and horizontally scrollable table with fixed-width freezable columns.

This widget will try to expand to the highest constraints given.

Inheritance
Implementers

Constructors

TableView.builder({Key? key, TableViewStyle? style, required int rowCount, required double rowHeight, required List<TableColumn> columns, TableViewController? controller, required TableRowBuilder rowBuilder, TablePlaceholderBuilder placeholderBuilder = _defaultPlaceholderBuilder, TablePlaceholderShade? placeholderShade, TableBodyContainerBuilder bodyContainerBuilder = _defaultBodyContainerBuilder, TableHeaderBuilder? headerBuilder, double? headerHeight, TableFooterBuilder? footerBuilder, double? footerHeight, double? minScrollableWidth, double? minScrollableWidthRatio, TextDirection? textDirection})
const

Properties

bodyContainerBuilder → TableBodyContainerBuilder
A function that will be called on-demand enabling wrapping vertically scrollable table body section that contains all visible rows including placeholders.
final
columns List<TableColumn>
List of column descriptions to display in a table.
final
controller TableViewController?
Controller for the state of a table.
final
footerBuilder → TableFooterBuilder?
A function that will be called on-demand for each cell in a footer in order to build a widget for that section of a footer.
final
footerHeight double
Height of a footer. If null, rowHeight will be used instead.
final
hashCode int
The hash code for this object.
no setterinherited
headerBuilder → TableHeaderBuilder?
A function that will be called on-demand for each cell in a header in order to build a widget for that section of a header.
final
headerHeight double
Height of a header. If null, rowHeight will be used instead.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
minScrollableWidth double?
Minimum scrollable width that may not be taken up by frozen columns. If a resulting scrollable width is less than this property, columns will be unfrozen according to freeze priority until scrollable width is greater than or equal to this property.
final
minScrollableWidthRatio double?
Minimum scrollable width ratio in relation to the width of a table. Used to calculate minScrollableWidth depending on an overall table width if that property is null.
final
placeholderBuilder → TablePlaceholderBuilder
A function that will be called on-demand for building the placeholder row widget. It never gets called more than once per build cycle as the same widget is reused for every placeholder row built.
final
placeholderShade TablePlaceholderShade?
A callback that allows application of a shader to the placeholder rows.
final
rowBuilder → TableRowBuilder
A function that will be called on-demand for each row displayed in order to build a widget of a row of the table.
final
rowCount int
Count of fixed-height rows displayed in a table.
final
rowHeight double
Height of each row displayed in a table.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TableViewStyle?
Display style of the table.
final
textDirection TextDirection?
Text direction of the table. Determines horizontal scroll axis and column layout direction as well.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<TableView>
Creates the mutable state for this widget at a given location in the tree.
override
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}) 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