TableAdvanced<T> constructor
const
TableAdvanced<T> ({
- Key? key,
- required List<
TableAdvancedColumnHeader> columnHeaders, - required TableAdvancedRow rowBuilder(
- T item
- required TableAdvancedController<
T> controller, - EdgeInsets innerPadding = EdgeInsets.zero,
- double rowSpacing = 12,
- Widget paginationBuilder(
- TableAdvancedController<
T> controller
- TableAdvancedController<
- Widget? emptyState,
An easy to use table with responsive layout and pagination.
Use the controller
to manipulate table properties such as content and pagination.
Note that the length of columnHeaders
should match the number of cells of
each row returned by the rowBuilder
, otherwise unexpected behaviour may happen.
Implementation
const TableAdvanced({
Key? key,
required this.columnHeaders,
required this.rowBuilder,
required this.controller,
this.innerPadding = EdgeInsets.zero,
this.rowSpacing = 12,
this.paginationBuilder,
this.emptyState,
}) : super(key: key);