CustomTable class
Table 表格组件
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CustomTable
Constructors
-
CustomTable({required List<
DataColumn> columns, required List<DataRow> rows, Key? key, int? sortColumnIndex, bool sortAscending = true, ValueSetter<bool?> ? onSelectAll, Decoration? decoration, WidgetStateProperty<Color?> ? dataRowColor, double? dataRowMinHeight, double? dataRowMaxHeight, TextStyle? dataTextStyle, WidgetStateProperty<Color?> ? headingRowColor, double? headingRowHeight, TextStyle? headingTextStyle, bool showCheckboxColumn = true, bool showBottomBorder = false, double? columnSpacing, double? dividerThickness, TableBorder? border, Clip clipBehavior = Clip.antiAlias, double? horizontalMargin, double? checkboxHorizontalMargin, Axis scrollDirection = Axis.horizontal, Widget? title, String? titleText}) -
Table 表格组件
const
Properties
- border → TableBorder?
-
表格边框
final
- checkboxHorizontalMargin → double?
-
复选框水平边距
final
- clipBehavior → Clip
-
裁剪行为
final
-
columns
→ List<
DataColumn> -
列定义
final
- columnSpacing → double?
-
列间距
final
-
dataRowColor
→ WidgetStateProperty<
Color?> ? -
数据行颜色
final
- dataRowMaxHeight → double?
-
数据行最大高度
final
- dataRowMinHeight → double?
-
数据行最小高度
final
- dataTextStyle → TextStyle?
-
数据文本样式
final
- decoration → Decoration?
-
装饰
final
- dividerThickness → double?
-
分隔线厚度
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headingRowColor
→ WidgetStateProperty<
Color?> ? -
表头行颜色
final
- headingRowHeight → double?
-
表头行高度
final
- headingTextStyle → TextStyle?
-
表头文本样式
final
- horizontalMargin → double?
-
水平边距
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onSelectAll
→ ValueSetter<
bool?> ? -
全选回调
final
-
rows
→ List<
DataRow> -
行数据
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollDirection → Axis
-
滚动方向
final
- showBottomBorder → bool
-
显示底部边框
final
- showCheckboxColumn → bool
-
显示复选框列
final
- sortAscending → bool
-
升序排序
final
- sortColumnIndex → int?
-
排序列索引
final
- title → Widget?
-
标题组件
final
- titleText → String?
-
标题文本
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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