Dashboard overview

This commit is contained in:
Hillel Coren 2022-08-12 14:20:16 +03:00
parent bb6d14e4cb
commit 3680fc57c4
2 changed files with 12 additions and 1 deletions

View File

@ -20,8 +20,9 @@ class ChartDataGroup {
Map<String, List<String>> entityMap = {};
List<Series<dynamic, DateTime>> chartSeries;
double preriodTotal = 0.0;
double average = 0.0;
double previousTotal = 0.0;
double total = 0.0;
double average = 0.0;
}
class ChartMoneyData {

View File

@ -659,6 +659,16 @@ class DashboardPanels extends StatelessWidget {
Text(formatNumber(0, context),
style: textTheme.headline5,
textAlign: TextAlign.center),
if (settings.showTotal) ...[
SizedBox(height: 20),
Text(localization.total,
style: textTheme.subtitle1,
textAlign: TextAlign.center),
SizedBox(height: 4),
Text(formatNumber(0, context),
style: textTheme.headline5,
textAlign: TextAlign.center),
]
],
);
}).toList(),