BasicTable constructor

const BasicTable({
  1. required int rowsCount,
  2. required List<BasicTableColumnBuilder> columnBuilders,
  3. Decoration? decoration,
  4. double dividerHeight = 1,
  5. Color dividerColor = Colors.grey,
  6. double scrollBarThickness = 6,
  7. double commandsHeight = 0,
  8. MainAxisAlignment commandsAlignment = MainAxisAlignment.end,
  9. List<Widget>? commands,
  10. double headerHeight = 26,
  11. TextStyle? headerTextStyle,
  12. Color? headerBackground,
  13. double rowHeight = 26,
  14. Color? rowBackgroundOdd,
  15. Color? rowBackgroundEven,
  16. double paginationHeight = 46,
  17. EdgeInsetsGeometry paginationPadding = const EdgeInsets.symmetric(horizontal: 8),
  18. int? initialPageSize,
  19. List<int> pageSizes = const <int>[10, 25, 50, 100],
  20. dynamic onPageSizeChanged(
    1. int size,
    2. int page
    )?,
  21. double paginationIconSize = 12,
  22. int totalPages = 0,
  23. dynamic onPageChanged(
    1. int page
    )?,
  24. Key? key,
})

Implementation

const BasicTable({
  required this.rowsCount,
  required this.columnBuilders,
  this.decoration,
  this.dividerHeight = 1,
  this.dividerColor = Colors.grey,
  this.scrollBarThickness = 6,
  this.commandsHeight = 0,
  this.commandsAlignment = MainAxisAlignment.end,
  this.commands,
  this.headerHeight = 26,
  this.headerTextStyle,
  this.headerBackground,
  this.rowHeight = 26,
  this.rowBackgroundOdd,
  this.rowBackgroundEven,
  this.paginationHeight = 46,
  this.paginationPadding = const EdgeInsets.symmetric(horizontal: 8),
  this.initialPageSize,
  this.pageSizes = const <int>[10, 25, 50, 100],
  this.onPageSizeChanged,
  this.paginationIconSize = 12,
  this.totalPages = 0,
  this.onPageChanged,
  super.key,
});