FlutstrapTable<T> constructor
const
FlutstrapTable<T> ({
- Key? key,
- required List<
FSTableColumn< columns,T> > - required List<
T> data, - FSTableVariant variant = FSTableVariant.primary,
- FSTableSize size = FSTableSize.md,
- FSTableResponsive responsive = FSTableResponsive.scroll,
- bool striped = false,
- bool bordered = false,
- bool hover = true,
- bool condensed = false,
- String? emptyMessage,
- Widget? emptyWidget,
- void onRowTap(
- T item
- void onRowDoubleTap(
- T item
- Map<
int, TableColumnWidth> ? columnWidths, - BorderRadiusGeometry? borderRadius,
- bool showHeader = true,
- Color? backgroundColor,
- Color? borderColor,
- double? horizontalSpacing,
- double? verticalSpacing,
- bool virtualized = true,
- 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,
});