AnalyticsTemplate constructor
const
AnalyticsTemplate({
- Key? key,
- required List<
AnalyticsKpi> kpis, - String title = 'Analytics',
- String rangeLabel = 'Last 30 days',
- VoidCallback? onRangeTap,
- VoidCallback? onExport,
- VoidCallback? onRefresh,
- String lineTitle = 'Visitors',
- List<
double> lineData = const <double>[], - List<
String> lineLabels = const <String>[], - List<
double> sparkData = const <double>[], - List<
PieSegment> pieSegments = const <PieSegment>[], - String pieTitle = 'Traffic sources',
- String? pieCenterLabel,
- String? pieCenterSubLabel,
- PreferredSizeWidget? appBar,
Implementation
const AnalyticsTemplate({
super.key,
required this.kpis,
this.title = 'Analytics',
this.rangeLabel = 'Last 30 days',
this.onRangeTap,
this.onExport,
this.onRefresh,
this.lineTitle = 'Visitors',
this.lineData = const <double>[],
this.lineLabels = const <String>[],
this.sparkData = const <double>[],
this.pieSegments = const <PieSegment>[],
this.pieTitle = 'Traffic sources',
this.pieCenterLabel,
this.pieCenterSubLabel,
this.appBar,
});