diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-08-19 13:07:39 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-08-19 13:07:39 +0200 |
| commit | ec7c6e4f7ebd4e096722c7cfd1e651867207ec07 (patch) | |
| tree | 936aa3778aece0d86ee76a34327a5bd76577fe55 /lib/pages/logbook_page.dart | |
| parent | 019adc4d685e81b658ac88d4f54a4aa151197c09 (diff) | |
v0.3
Diffstat (limited to 'lib/pages/logbook_page.dart')
| -rw-r--r-- | lib/pages/logbook_page.dart | 19 |
1 files changed, 11 insertions, 8 deletions
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<LogbookPage> { super.initState(); shiftProvider.getPastShifts().then( - (value) => setState( - () { - List<Shift> allShifts = value; - sortShifts(allShifts); - }, - ), + (value) => { + if (mounted) + setState( + () { + List<Shift> allShifts = value; + sortShifts(allShifts); + }, + ) + }, ); } @@ -89,8 +92,8 @@ class _LogbookPageState extends State<LogbookPage> { 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), |
