folder restructuring

This commit is contained in:
2026-05-05 21:44:23 +02:00
parent db9c3386f1
commit 4f796dac2e
102 changed files with 1254 additions and 879 deletions
+21
View File
@@ -0,0 +1,21 @@
import 'package:flutter/material.dart';
import '../widget/dropdown_display.dart';
class AppTheme {
static DropdownDisplay getDisplayOptions(ThemeMode theme) {
switch(theme) {
case ThemeMode.system:
return DropdownDisplay(icon: Icons.auto_fix_high_outlined, displayName: 'Systemvorgabe');
case ThemeMode.light:
return DropdownDisplay(icon: Icons.wb_sunny_outlined, displayName: 'Hell');
case ThemeMode.dark:
return DropdownDisplay(icon: Icons.dark_mode_outlined, displayName: 'Dunkel');
}
}
static bool isDarkMode(BuildContext context) => Theme.of(context).brightness == Brightness.dark;
}