From ec7c6e4f7ebd4e096722c7cfd1e651867207ec07 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 19 Aug 2022 13:07:39 +0200 Subject: v0.3 --- lib/pages/logbook_page.dart | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'lib/pages/logbook_page.dart') diff --git a/lib/pages/logbook_page.dart b/lib/pages/logbook_page.dart index be49ac8..5449d8f 100644 --- a/lib/pages/logbook_page.dart +++ b/lib/pages/logbook_page.dart @@ -72,12 +72,15 @@ class _LogbookPageState extends State { super.initState(); shiftProvider.getPastShifts().then( - (value) => setState( - () { - List allShifts = value; - sortShifts(allShifts); - }, - ), + (value) => { + if (mounted) + setState( + () { + List allShifts = value; + sortShifts(allShifts); + }, + ) + }, ); } @@ -89,8 +92,8 @@ class _LogbookPageState extends State { padding: const EdgeInsets.only(bottom: 8, left: 10, right: 10), child: Container( decoration: BoxDecoration( - border: Border.all(color: Color.fromARGB(255, 140, 140, 180)), - color: Color.fromARGB(255, 180, 180, 200), + border: Border.all(color: Style.logbookEntryBorder), + color: Style.logbookEntryBackground, borderRadius: BorderRadius.all(Radius.circular(8))), child: Padding( padding: const EdgeInsets.all(8), -- cgit v1.2.3-70-g09d2