CustomTable constructor
const
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 表格组件
Implementation
const CustomTable({
required this.columns,
required this.rows,
super.key,
this.sortColumnIndex,
this.sortAscending = true,
this.onSelectAll,
this.decoration,
this.dataRowColor,
this.dataRowMinHeight,
this.dataRowMaxHeight,
this.dataTextStyle,
this.headingRowColor,
this.headingRowHeight,
this.headingTextStyle,
this.showCheckboxColumn = true,
this.showBottomBorder = false,
this.columnSpacing,
this.dividerThickness,
this.border,
this.clipBehavior = Clip.antiAlias,
this.horizontalMargin,
this.checkboxHorizontalMargin,
this.scrollDirection = Axis.horizontal,
this.title,
this.titleText,
});