SliverTableView class
This is a sliver variant of the TableView widget. This variant is scrolled vertically by an outside Scrollable (e.g. CustomScrollView), thus allowing it to be used alongside other slivers, including other instances of SliverTableView.
Horizontal scrolling is managed by this widget itself.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TableView
- SliverTableView
Constructors
-
SliverTableView.builder({Key? key, TableViewStyle? style, required int rowCount, required double rowHeight, required List<
TableColumn> columns, ScrollController? horizontalScrollController, required TableRowBuilder rowBuilder, TableRowReorder? rowReorder, TablePlaceholderBuilder placeholderBuilder = _defaultPlaceholderBuilder, TablePlaceholderRowBuilder? placeholderRowBuilder, TablePlaceholderShade? placeholderShade, TableBodyContainerBuilder bodyContainerBuilder = _defaultBodyContainerBuilder, TableHeaderBuilder? headerBuilder, double? headerHeight, double? minScrollableWidth, double? minScrollableWidthRatio, TextDirection? textDirection, bool addAutomaticKeepAlives = false}) -
const
Properties
- addAutomaticKeepAlives → bool
-
finalinherited
- bodyContainerBuilder → TableBodyContainerBuilder
-
A function that will be called on-demand enabling wrapping vertically
scrollable table body section that contains all visible rows including
placeholders.
finalinherited
-
columns
→ List<
TableColumn> -
List of column descriptions to display in a table.
finalinherited
- controller → TableViewController?
-
Controller for the state of a table.
finalinherited
-
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.
finalinherited
-
Height of a footer. If null, rowHeight will be used instead.
finalinherited
- 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.
finalinherited
- headerHeight → double
-
Height of a header. If null, rowHeight will be used instead.
finalinherited
- horizontalScrollController → ScrollController?
-
A scroll controller used for the horizontal scrolling of the table.
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.
finalinherited
- 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.
finalinherited
- 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.
finalinherited
- placeholderRowBuilder → TablePlaceholderRowBuilder?
-
A function that will be called on-demand for building a placeholder
row widget. As oppose to placeholderBuilder, this function gets called
to build every placeholder row individually. Consider using
placeholderBuilder when all placeholder rows are the same as each other.
finalinherited
- placeholderShade → TablePlaceholderShade?
-
A callback that allows application of a shader to the placeholder rows.
finalinherited
- 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.
finalinherited
- rowCount → int
-
Count of fixed-height rows displayed in a table.
finalinherited
- rowHeight → double
-
Height of each row displayed in a table.
finalinherited
- rowReorder → TableRowReorder?
-
When a non-null value is specified, SliverReorderableList instantiated
using properties from this object will be used by the table.
This enables row reordering using the same way as one would
working with ReorderableListView. This also means that each row widget
built by a rowBuilder is required to have a unique key.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → TableViewStyle?
-
Display style of the table.
finalinherited
- textDirection → TextDirection?
-
Text direction of the table. Determines horizontal scroll axis and column
layout direction as well.
finalinherited
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