mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-13 22:53:45 +08:00
DebugScreen: Make it work with dark mode
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user