From 0c558015727c820a5794d2f40d07a5f9e76ef93e Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 24 Feb 2020 14:07:51 +0200 Subject: [PATCH] Reports --- lib/ui/reports/reports_screen.dart | 13 ++++++++----- lib/ui/reports/reports_screen_vm.dart | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/ui/reports/reports_screen.dart b/lib/ui/reports/reports_screen.dart index d5ec9dc67..b5c88b751 100644 --- a/lib/ui/reports/reports_screen.dart +++ b/lib/ui/reports/reports_screen.dart @@ -453,14 +453,17 @@ class ReportCharts extends StatelessWidget { final ordinalAxis = charts.OrdinalAxisSpec( renderSpec: charts.GridlineRendererSpec( - lineStyle: - charts.LineStyleSpec(color: charts.MaterialPalette.transparent), - labelStyle: charts.TextStyleSpec(fontSize: 10, color: color))); + lineStyle: + charts.LineStyleSpec(color: charts.MaterialPalette.transparent), + labelStyle: charts.TextStyleSpec(fontSize: 10, color: color), + labelRotation: 45, + )); final dateTimeAxis = charts.DateTimeAxisSpec( renderSpec: charts.SmallTickRendererSpec( - labelStyle: charts.TextStyleSpec(color: color), - lineStyle: charts.LineStyleSpec(color: color))); + labelStyle: charts.TextStyleSpec(color: color), + lineStyle: charts.LineStyleSpec(color: color), + )); Widget child; switch (getReportColumnType(reportState.group, context)) { diff --git a/lib/ui/reports/reports_screen_vm.dart b/lib/ui/reports/reports_screen_vm.dart index 407f71ddb..2bd7e6790 100644 --- a/lib/ui/reports/reports_screen_vm.dart +++ b/lib/ui/reports/reports_screen_vm.dart @@ -218,7 +218,7 @@ class ReportsScreenVM { .rebuild((b) => b..userCompany.settings.replace(settings)); final completer = snackBarCompleter( context, AppLocalization.of(context).savedSettings); - if (state.authState.hasRecentlyEnteredPassword && false) { + if (state.authState.hasRecentlyEnteredPassword) { store.dispatch( SaveUserSettingsRequest( completer: completer,