FlexTable class

Table that is higly performant regardless of the number of rows and allows for fully resizable columns.

Inheritance

Constructors

FlexTable({required FlexTableController controller, double dataHeight = 40.0, FlexDataCellBuilder dataBuilder = const FlexDataCellBuilder(), TextStyle? dataStyle, WidgetBuilder? emptyDataBuilder, required List<FlexTableCell> headers, FlexHeaderCellBuilder headerBuilder = const FlexHeaderCellBuilder(), FlexHeaderDividerBuilder headerDividerBuilder = const FlexDefaultHeaderDividerBuilder(), double headerHeight = 40.0, TextStyle? headerStyle = const TextStyle(fontWeight: FontWeight.bold), List<FlexTableColumnSize>? initialColumnSizes, List<FlexTableRow> initialData = const [], Key? key, ValueChanged<int>? onRowSelected, bool pushDividers = true, bool resizable = true, ScrollController? scrollController, List<int> selectedRows = const [], bool shrinkWrap = false})
Flexible table with an effectively unlimited number of rows, resizable columns, and other configurable options.
const

Properties

controller → FlexTableController
The controller to provide two way communication between the table and other systems.
final
dataBuilder → FlexDataCellBuilder
Builder to build data cells.
final
dataHeight → double
Fixed height to use for data rows.
final
dataStyle → TextStyle?
Text style to use for text in data cells.
final
emptyDataBuilder → WidgetBuilder?
Optional builder to build the section for the data when there are no rows.
final
hashCode → int
The hash code for this object.
no setterinherited
headerBuilder → FlexHeaderCellBuilder
Builder to build the header cells.
final
headerDividerBuilder → FlexHeaderDividerBuilder
Builder to build the dividers between the header cells. Will be ignored when resizable is false.
final
headerHeight → double
Fixed height to use for the header cells.
final
headers → List<FlexTableCell>
List of column headers.
final
headerStyle → TextStyle?
Text style to use for text in the header cells.
final
initialColumnSizes → List<FlexTableColumnSize>?
Inticial sizes for the columns.
final
initialData → List<FlexTableRow>
Initial rows to populate on the controller and display during first build.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onRowSelected → ValueChanged<int>?
final
pushDividers → bool
Defines whether one column can push across the width of another or not.
final
resizable → bool
Defines whether the columns are resizable or not.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollController → ScrollController?
Scroll controller for the table
final
selectedRows → List<int>
Indicies of the rows that are selected within the table.
final
shrinkWrap → bool
When set to true, the table will not scroll and will instead fully render at it's proper height. This is fairly expensive and not typically recommended.
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, 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