ResponsiveTable constructor
const
ResponsiveTable({
- Key? key,
- required List<
String> columns, - required List<
List> rows, - Widget mobileCardBuilder(
- BuildContext context,
- List row,
- List<
String> headers
- void onRowTap()?,
- ScreenType tableBreakpoint = ScreenType.mobile,
- bool showSortIndicator = false,
- int? sortColumnIndex,
- bool sortAscending = true,
- void onSort()?,
- Widget? tableHeading,
- EdgeInsetsGeometry cardListPadding = const EdgeInsets.all(8),
- double cardSpacing = 8.0,
- bool horizontalScroll = true,
- Decoration? tableDecoration,
- bool cardShrinkWrap = true,
- ScrollPhysics? cardPhysics,
Creates a ResponsiveTable.
Implementation
const ResponsiveTable({
super.key,
required this.columns,
required this.rows,
this.mobileCardBuilder,
this.hiddenColumnsOnMobile,
this.onRowTap,
this.tableBreakpoint = ScreenType.mobile,
this.showSortIndicator = false,
this.sortColumnIndex,
this.sortAscending = true,
this.onSort,
this.tableHeading,
this.cardListPadding = const EdgeInsets.all(8),
this.cardSpacing = 8.0,
this.horizontalScroll = true,
this.tableDecoration,
this.cardShrinkWrap = true,
this.cardPhysics,
});