NrbTableEngine constructor

const NrbTableEngine({
  1. Key? key,
  2. double? bodyCellHeight,
  3. double? headerRowHeight,
  4. double textSize = 12,
  5. double headerTextSize = 13,
  6. int frozenColumnsCount = 1,
  7. NrbVerticalScrollBehavior verticalScrollBehavior = NrbVerticalScrollBehavior.internal,
  8. required List<List<NrbHeaderCell>> headers,
  9. required List<List<ReportCell>> tableData,
  10. Color primaryUiColor = Colors.blue,
  11. Color primaryUiTextColor = Colors.white,
  12. bool enableDownload = false,
  13. bool showDownloadFloatingButton = true,
  14. String? packageName,
  15. String? apiKey,
  16. String? companyName,
  17. String? companyAddress,
  18. String? companyLogoAsset,
  19. String? reportName,
  20. TableDownloadSuccessCallback? onDownloadCompleted,
  21. ReportController? controller,
  22. Map<int, double>? indexWiseColumnWidths,
  23. bool isSortingEnable = false,
})

Creates an NrbTableEngine which automatically handles dynamic column sizing.

Implementation

const NrbTableEngine({
  super.key,
  this.bodyCellHeight,
  this.headerRowHeight,
  this.textSize = 12,
  this.headerTextSize = 13,
  this.frozenColumnsCount = 1,
  this.verticalScrollBehavior = NrbVerticalScrollBehavior.internal,
  required this.headers,
  required this.tableData,
  this.primaryUiColor = Colors.blue,
  this.primaryUiTextColor = Colors.white,
  this.enableDownload = false,
  this.showDownloadFloatingButton = true,
  this.packageName,
  this.apiKey,
  this.companyName,
  this.companyAddress,
  this.companyLogoAsset,
  this.reportName,
  this.onDownloadCompleted,
  this.controller,
  this.indexWiseColumnWidths,
  this.isSortingEnable = false,
});