AdminTemplate constructor
const
AdminTemplate({
- Key? key,
- required List<
Widget> stats, - required List<
String> columns, - required List<
AdminRow> rows, - String title = 'Admin',
- String greeting = 'Overview',
- String chartTitle = 'Revenue',
- List<
String> chartLabels = const <String>[], - List<
double> chartData = const <double>[], - String tableTitle = 'Recent orders',
- String? tableSubtitle,
- VoidCallback? onAdd,
- VoidCallback? onExport,
- VoidCallback? onRefresh,
- 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,
});