BasicTable constructor
const
BasicTable({
- required int rowsCount,
- required List<
BasicTableColumnBuilder> columnBuilders, - Decoration? decoration,
- double dividerHeight = 1,
- Color dividerColor = Colors.grey,
- double scrollBarThickness = 6,
- double commandsHeight = 0,
- MainAxisAlignment commandsAlignment = MainAxisAlignment.end,
- List<
Widget> ? commands, - double headerHeight = 26,
- TextStyle? headerTextStyle,
- Color? headerBackground,
- double rowHeight = 26,
- Color? rowBackgroundOdd,
- Color? rowBackgroundEven,
- double paginationHeight = 46,
- EdgeInsetsGeometry paginationPadding = const EdgeInsets.symmetric(horizontal: 8),
- int? initialPageSize,
- List<
int> pageSizes = const <int>[10, 25, 50, 100], - dynamic onPageSizeChanged()?,
- double paginationIconSize = 12,
- int totalPages = 0,
- dynamic onPageChanged(
- int page
- 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,
});