AdminTemplate constructor

const AdminTemplate({
  1. Key? key,
  2. required List<Widget> stats,
  3. required List<String> columns,
  4. required List<AdminRow> rows,
  5. String title = 'Admin',
  6. String greeting = 'Overview',
  7. String chartTitle = 'Revenue',
  8. List<String> chartLabels = const <String>[],
  9. List<double> chartData = const <double>[],
  10. String tableTitle = 'Recent orders',
  11. String? tableSubtitle,
  12. VoidCallback? onAdd,
  13. VoidCallback? onExport,
  14. VoidCallback? onRefresh,
  15. PreferredSizeWidget? appBar,
})

Implementation

const AdminTemplate({
  super.key,
  required this.stats,
  required this.columns,
  required this.rows,
  this.title = 'Admin',
  this.greeting = 'Overview',
  this.chartTitle = 'Revenue',
  this.chartLabels = const <String>[],
  this.chartData = const <double>[],
  this.tableTitle = 'Recent orders',
  this.tableSubtitle,
  this.onAdd,
  this.onExport,
  this.onRefresh,
  this.appBar,
});