From 1bf91b9292d02f81e3bfb1dd3fcfe12f791935c9 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Tue, 19 May 2020 22:53:08 +0200 Subject: [PATCH] DebugScreen: Make it work with dark mode --- lib/screens/debug_screen.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/screens/debug_screen.dart b/lib/screens/debug_screen.dart index 20cfd98f..a4fe2f7c 100644 --- a/lib/screens/debug_screen.dart +++ b/lib/screens/debug_screen.dart @@ -164,11 +164,12 @@ class _DebugScreenState extends State { } Color _colorForLevel(String l) { + var theme = Theme.of(context); switch (l) { case 'e': return Colors.red; } - return Colors.black; + return theme.brightness == Brightness.light ? Colors.black : Colors.white; } Widget _buildDateWidget(DateTime dt) {