AsyncPaginatedDataTable2 constructor
AsyncPaginatedDataTable2({
- Key? key,
- Widget? header,
- List<
Widget> ? actions, - required List<
DataColumn> columns, - int? sortColumnIndex,
- bool sortAscending = true,
- Duration sortArrowAnimationDuration = const Duration(milliseconds: 150),
- IconData sortArrowIcon = Icons.arrow_upward,
- bool sortArrowAlwaysVisible = false,
- Widget sortArrowBuilder()?,
- ValueSetter<
bool?> ? onSelectAll, - double dataRowHeight = kMinInteractiveDimension,
- MaterialStateProperty<
Color?> ? headingRowColor, - BoxDecoration? headingRowDecoration,
- double headingRowHeight = 56,
- CheckboxThemeData? headingCheckboxTheme,
- TextStyle? headingTextStyle,
- double horizontalMargin = 24,
- double columnSpacing = 56,
- double? dividerThickness,
- bool renderEmptyRowsInTheEnd = true,
- int fixedLeftColumns = 0,
- int fixedTopRows = 1,
- Color? fixedColumnsColor,
- Color? fixedCornerColor,
- CheckboxThemeData? datarowCheckboxTheme,
- TextStyle? dataTextStyle,
- bool showCheckboxColumn = true,
- bool showFirstLastButtons = false,
- int? initialFirstRowIndex = 0,
- ValueChanged<
int> ? onPageChanged, - int rowsPerPage = defaultRowsPerPage,
- List<
int> availableRowsPerPage = const <int>[defaultRowsPerPage, defaultRowsPerPage * 2, defaultRowsPerPage * 5, defaultRowsPerPage * 10], - ValueChanged<
int?> ? onRowsPerPageChanged, - DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- required DataTableSource source,
- double? checkboxHorizontalMargin,
- Alignment checkboxAlignment = Alignment.center,
- bool wrapInCard = true,
- double? minWidth,
- FlexFit fit = FlexFit.tight,
- bool hidePaginator = false,
- PaginatorController? controller,
- ScrollController? scrollController,
- ScrollController? horizontalScrollController,
- Widget? empty,
- Widget? loading,
- Widget errorBuilder(
- Object? error
- PageSyncApproach pageSyncApproach = PageSyncApproach.doNothing,
- TableBorder? border,
- bool autoRowsToHeight = false,
- double smRatio = 0.67,
- double lmRatio = 1.2,
Implementation
AsyncPaginatedDataTable2(
{super.key,
super.header,
super.actions,
required super.columns,
super.sortColumnIndex,
super.sortAscending = true,
super.sortArrowAnimationDuration = const Duration(milliseconds: 150),
super.sortArrowIcon = Icons.arrow_upward,
super.sortArrowAlwaysVisible,
super.sortArrowBuilder,
super.onSelectAll,
super.dataRowHeight = kMinInteractiveDimension,
super.headingRowColor,
super.headingRowDecoration,
super.headingRowHeight = 56,
super.headingCheckboxTheme,
super.headingTextStyle,
super.horizontalMargin = 24,
super.columnSpacing = 56,
super.dividerThickness,
super.renderEmptyRowsInTheEnd = true,
super.fixedLeftColumns = 0,
super.fixedTopRows = 1,
super.fixedColumnsColor,
super.fixedCornerColor,
super.datarowCheckboxTheme,
super.dataTextStyle,
super.showCheckboxColumn = true,
super.showFirstLastButtons = false,
super.initialFirstRowIndex = 0,
super.onPageChanged,
super.rowsPerPage = defaultRowsPerPage,
super.availableRowsPerPage = const <int>[
defaultRowsPerPage,
defaultRowsPerPage * 2,
defaultRowsPerPage * 5,
defaultRowsPerPage * 10
],
super.onRowsPerPageChanged,
super.dragStartBehavior = DragStartBehavior.start,
required super.source,
super.checkboxHorizontalMargin,
super.checkboxAlignment,
super.wrapInCard = true,
super.minWidth,
super.fit = FlexFit.tight,
super.hidePaginator = false,
super.controller,
super.scrollController,
super.horizontalScrollController,
super.empty,
this.loading,
this.errorBuilder,
this.pageSyncApproach = PageSyncApproach.doNothing,
super.border,
super.autoRowsToHeight = false,
super.smRatio = 0.67,
super.lmRatio = 1.2});