AppTable class

A widget that displays a customizable table with a header and rows of data.

Inheritance

Constructors

AppTable.new({Key? key, List<TableModel>? headerData, required List<List<TableModel>> data, String? title, TextStyle? titleStyle, TextStyle? textStyle, Alignment alignment = Alignment.centerLeft, TextAlign textAlign = TextAlign.left, double? width, double? height, double? minWidth, double? minHeight, double borderRadius = 0, double? headerBottomBorderWidth, double? dataBottomBorderWidth = 1, double? tableBorderWidth, Color? headerBackgroundColor, Color? headerBottomBorderColor, Color? backgroundColor, Color? dataBottomBorderColor, Color? tableBorderColor, EdgeInsets titlePadding = const EdgeInsets.only(bottom: 14), EdgeInsets? headerPadding, EdgeInsets padding = const EdgeInsets.all(12), ScrollController? horizontalScrollController, ScrollController? verticalScrollController})
Constructor for the AppTable widget.
const

Properties

alignment Alignment
Alignment for the table cells.
final
backgroundColor Color?
Background color for the table.
final
borderRadius double
Border radius for the table.
final
data List<List<TableModel>>
Data for the table rows.
final
dataBottomBorderColor Color?
Color of the bottom border of the data rows.
final
dataBottomBorderWidth double?
Width of the bottom border of the data rows.
final
hashCode int
The hash code for this object.
no setterinherited
headerBackgroundColor Color?
Background color for the header row.
final
headerBottomBorderColor Color?
Color of the bottom border of the header row.
final
headerBottomBorderWidth double?
Width of the bottom border of the header row.
final
headerData List<TableModel>?
Data for the header row.
final
headerPadding EdgeInsets?
Padding for the header row.
final
height double?
Height of the table.
final
horizontalScrollController ScrollController?
Scroll controller for the table.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
minHeight double?
Minimum height of the table.
final
minWidth double?
Minimum width of the table.
final
padding EdgeInsets
Padding for the table cells.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableBorderColor Color?
Color of the table border.
final
tableBorderWidth double?
Width of the table border.
final
textAlign TextAlign
Text alignment for the table cells.
final
textStyle TextStyle?
Style for the table text.
final
title String?
Title of the table.
final
titlePadding EdgeInsets
Padding for the table title.
final
titleStyle TextStyle?
Style for the title text.
final
verticalScrollController ScrollController?
final
width double?
Width of the table.
final

Methods

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