FlutterMultiScrollTable class

A widget that represents a multi-scrollable table with resizable columns.

Inheritance

Constructors

FlutterMultiScrollTable({Key? key, List<EachCell>? headers, List<List>? dataList, int? fixedCount = 0, required double totalWidth, double? height = 500, bool isAscending = true, BoxBorder? tableBorder, Widget? draggableIcon, void onGenerateRowConfiguration(int, List<EachCell>)?, TextStyle? headerTextStyle, TextStyle? dataTextStyle, double? tableDividerThickness, Color? tableDividerColor, List<Map<String, dynamic>>? jsonDataList, Color? headerBackgroundColor, Color? dataBackgroundColor, String? dataPlaceholder})
Creates a FlutterMultiScrollTable widget.
const

Properties

dataBackgroundColor Color?
The background color to be applied to all data cells.
final
dataList List<List>?
A 2D list where each inner list represents a row of data. Each element in the inner list represents a cell value in that row. This format is used to provide column data directly, assuming the column headers are already known.
final
dataPlaceholder String?
A placeholder string that will be used to replace any missing or null data in the table. For example, if a data cell is empty or has a null value, this string will be displayed instead.
final
dataTextStyle TextStyle?
The text style to be applied to all the data cells.
final
draggableIcon Widget?
A custom widget to use as the draggable icon for resizing columns.
final
fixedCount int?
The number of columns that should remain fixed when horizontally scrolling.
final
hashCode int
The hash code for this object.
no setterinherited
headerBackgroundColor Color?
The background color to be applied to all header cells.
final
headers List<EachCell>?
A list of header cells for the table. Each header is an EachCell widget.
final
headerTextStyle TextStyle?
The text style to be applied to all the header cells.
final
height double?
The height of the table. Defaults to 500 if not provided.
final
isAscending bool
Indicates whether the columns should be sorted in ascending order.
final
jsonDataList List<Map<String, dynamic>>?
A list of maps where each map represents a row of data in JSON format. Each key in the map corresponds to a column header, and the value is the cell data. This is used to generate column data and headers if not explicitly provided.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onGenerateRowConfiguration → void Function(int, List<EachCell>)?
A callback function that allows dynamic configuration of rows based on their index. It takes the row index and a list of EachCell widgets representing the row as parameters.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableBorder BoxBorder?
The border for the entire table. Defaults to a grey border if not provided.
final
tableDividerColor Color?
The color of the divider lines between table cells. If not provided, a default color will be used.
final
tableDividerThickness double?
The thickness of the divider lines between table cells. If not provided, a default thickness will be used.
final
totalWidth double
The total width of the table, including all columns.
final

Methods

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