CustomTable constructor

const CustomTable({
  1. required List<DataColumn> columns,
  2. required List<DataRow> rows,
  3. Key? key,
  4. int? sortColumnIndex,
  5. bool sortAscending = true,
  6. ValueSetter<bool?>? onSelectAll,
  7. Decoration? decoration,
  8. WidgetStateProperty<Color?>? dataRowColor,
  9. double? dataRowMinHeight,
  10. double? dataRowMaxHeight,
  11. TextStyle? dataTextStyle,
  12. WidgetStateProperty<Color?>? headingRowColor,
  13. double? headingRowHeight,
  14. TextStyle? headingTextStyle,
  15. bool showCheckboxColumn = true,
  16. bool showBottomBorder = false,
  17. double? columnSpacing,
  18. double? dividerThickness,
  19. TableBorder? border,
  20. Clip clipBehavior = Clip.antiAlias,
  21. double? horizontalMargin,
  22. double? checkboxHorizontalMargin,
  23. Axis scrollDirection = Axis.horizontal,
  24. Widget? title,
  25. 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,
});