FlutstrapTable<T> constructor

const FlutstrapTable<T>({
  1. Key? key,
  2. required List<FSTableColumn<T>> columns,
  3. required List<T> data,
  4. FSTableVariant variant = FSTableVariant.primary,
  5. FSTableSize size = FSTableSize.md,
  6. FSTableResponsive responsive = FSTableResponsive.scroll,
  7. bool striped = false,
  8. bool bordered = false,
  9. bool hover = true,
  10. bool condensed = false,
  11. String? emptyMessage,
  12. Widget? emptyWidget,
  13. void onRowTap(
    1. T item
    )?,
  14. void onRowDoubleTap(
    1. T item
    )?,
  15. Map<int, TableColumnWidth>? columnWidths,
  16. BorderRadiusGeometry? borderRadius,
  17. bool showHeader = true,
  18. Color? backgroundColor,
  19. Color? borderColor,
  20. double? horizontalSpacing,
  21. double? verticalSpacing,
  22. bool virtualized = true,
  23. double rowHeight = FSTableConfig.defaultRowHeight,
})

Implementation

const FlutstrapTable({
  super.key,
  required this.columns,
  required this.data,
  this.variant = FSTableVariant.primary,
  this.size = FSTableSize.md,
  this.responsive = FSTableResponsive.scroll,
  this.striped = false,
  this.bordered = false,
  this.hover = true,
  this.condensed = false,
  this.emptyMessage,
  this.emptyWidget,
  this.onRowTap,
  this.onRowDoubleTap,
  this.columnWidths,
  this.borderRadius,
  this.showHeader = true,
  this.backgroundColor,
  this.borderColor,
  this.horizontalSpacing,
  this.verticalSpacing,
  this.virtualized = true,
  this.rowHeight = FSTableConfig.defaultRowHeight,
});