ScrollableTable<T> constructor

const ScrollableTable<T>({
  1. Key? key,
  2. required List<T> data,
  3. required List<TableHeader> headers,
  4. bool showNumbering = true,
  5. int rowHeight = 50,
  6. int headerHeight = 50,
  7. int commonPadding = 20,
  8. double columnSpacing = 10,
  9. bool rounded = true,
  10. bool showButtons = true,
  11. void onEdit(
    1. T model
    )?,
  12. void onDelete(
    1. T model
    )?,
  13. void onDetails(
    1. T model
    )?,
  14. required List<Widget> rowElementsBuilder(
    1. T model
    ),
  15. Color? headerBackgroundColor,
  16. TextStyle? headerTextStyle,
  17. TextStyle? rowTextStyle,
  18. List<Widget> customButtons = const [],
  19. List<void Function(T model)> customButtonActions = const [],
  20. double buttonsWidth = 150,
  21. double? minSizeButtons,
  22. 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,
});