DebugScreen: Make it work with dark mode

This commit is contained in:
Vishesh Handa
2020-05-19 22:53:08 +02:00
parent 59c2f866bc
commit 1bf91b9292

View File

@ -164,11 +164,12 @@ class _DebugScreenState extends State<DebugScreen> {
}
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) {