MoonTable class

Inheritance

Constructors

MoonTable({Key? key, double? width, bool isHeaderPinned = true, bool isFooterPinned = true, bool isRowsPlaceholderPinned = true, bool sortAscending = false, int sortColumnIndex = 0, required int columnsCount, Decoration? decoration, double? rowGap, double? height, EdgeInsetsGeometry? cellPadding, EdgeInsetsGeometry? tablePadding, MoonTableRowSize? rowSize, ScrollBehavior? scrollBehaviour, ScrollPhysics? verticalScrollPhysics, ScrollPhysics? horizontalScrollPhysics, String? semanticLabel, OnScrollControllersReady? onScrollControllersReady, MoonTableHeader? header, MoonTableFooter? footer, required List<MoonTableRow> rows, Widget? rowsPlaceholder, Widget? rowDivider, Widget? loadingIndicator})
Creates a Moon Design table.
const

Properties

cellPadding EdgeInsetsGeometry?
The padding of the table row cells.
final
columnsCount int
The number of columns to build for the table.
final
decoration Decoration?
The custom decoration of the table.
final
The footer of the table.
final
hashCode int
The hash code for this object.
no setterinherited
The header of the table.
final
height double?
The height of the table. By default, the table expands to fill all available space.
final
horizontalScrollPhysics ScrollPhysics?
The horizontal scroll physics of the table.
final
isFooterPinned bool
Whether the footer of the table is pinned or vertically scrollable with the table body.
final
isHeaderPinned bool
Whether the header of the table is pinned or vertically scrollable with the table body.
final
isRowsPlaceholderPinned bool
Whether the rowsPlaceholder is pinned or horizontally scrollable with the table body.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadingIndicator Widget?
The widget to display at the end of an infinite scrolling list to signify ongoing content loading while scrolling down.
final
onScrollControllersReady OnScrollControllersReady?
The callback that returns the vertical and horizontal scroll controller for external usage.
final
rowDivider Widget?
The widget that separates the table rows horizontally.
final
rowGap double?
The vertical gap between the table rows.
final
rows List<MoonTableRow>
The list of table rows to display as the table body.
final
rowSize MoonTableRowSize?
The size of the table row. Applied to table header, footer and rows; unless these widgets have their own height specified. If MoonTable.rowSize is unspecified, the height will dynamically adjust based on the content of the table row.
final
rowsPlaceholder Widget?
The widget to display when the provided rows property is empty. By default it is not horizontally scrollable. To make it scrollable, set the isRowsPlaceholderPinned to false.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollBehaviour ScrollBehavior?
The scrolling behavior of the table.
final
semanticLabel String?
The semantic label for the table.
final
sortAscending bool
Whether to sort the table column in ascending or descending order.
final
sortColumnIndex int
The index of the column to sort the table by.
final
tablePadding EdgeInsetsGeometry?
The padding of the table.
final
verticalScrollPhysics ScrollPhysics?
The vertical scroll physics of the table.
final
width double?
The width of the table. Either the width for the table or the MoonTableColumn.width for each column must be provided. Cannot be used in conjunction with the MoonTableColumn.width property, one of them must be null.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
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