From 7b722b10242e10bc6d77dc453510c97c07c4cb61 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 18 Sep 2018 09:59:22 +0300 Subject: [PATCH] Dashboard --- lib/ui/dashboard/dashboard_panels.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ui/dashboard/dashboard_panels.dart b/lib/ui/dashboard/dashboard_panels.dart index 83acc57a2..1ac944b5c 100644 --- a/lib/ui/dashboard/dashboard_panels.dart +++ b/lib/ui/dashboard/dashboard_panels.dart @@ -92,7 +92,7 @@ class DashboardPanels extends StatelessWidget { return ListView( children: [ _header(context), - //_invoiceChart(context), + _invoiceChart(context), ], ); } @@ -223,6 +223,7 @@ class _DateRangePickerState extends State { super.initState(); final state = widget.state; + _dateRange = state.dateRange; _compareTo = state.enableComparison; } @@ -243,7 +244,7 @@ class _DateRangePickerState extends State { items: DateRange.values .map((dateRange) => DropdownMenuItem( child: Text(localization - .lookup(dateRange.toString().split('.')[1])), + .lookup(dateRange.toString())), value: dateRange, )) .toList(), @@ -265,9 +266,8 @@ class _DateRangePickerState extends State { onSelected: (date) => _endDate = date, ), SwitchListTile( - value: true, + value: _compareTo, title: Text(localization.compareTo), - selected: _compareTo, onChanged: (value) { setState(() => _compareTo = value); },