ScrollableTable<T> constructor
const
ScrollableTable<T> ({
- Key? key,
- required List<
T> data, - required List<
TableHeader> headers, - bool showNumbering = true,
- int rowHeight = 50,
- int headerHeight = 50,
- int commonPadding = 20,
- double columnSpacing = 10,
- bool rounded = true,
- bool showButtons = true,
- void onEdit(
- T model
- void onDelete(
- T model
- void onDetails(
- T model
- required List<
Widget> rowElementsBuilder(- T model
- Color? headerBackgroundColor,
- TextStyle? headerTextStyle,
- TextStyle? rowTextStyle,
- List<
Widget> customButtons = const [], - List<
void Function(T model)> customButtonActions = const [], - double buttonsWidth = 150,
- double? minSizeButtons,
- TextAlign? headerTextAlign,
Implementation
const ScrollableTable({
super.key,
required this.data,
required this.headers,
this.showNumbering = true,
this.rowHeight = 50,
this.headerHeight = 50,
this.commonPadding = 20,
this.columnSpacing = 10,
this.rounded = true,
this.showButtons = true,
this.onEdit,
this.onDelete,
this.onDetails,
required this.rowElementsBuilder,
this.headerBackgroundColor,
this.headerTextStyle,
this.rowTextStyle,
this.customButtons = const [],
this.customButtonActions = const [],
this.buttonsWidth = 150,
this.minSizeButtons,
this.headerTextAlign,
});