dart format

This commit is contained in:
MineTec committed 2026-05-08 20:12:40 +02:00
1 parent 9e139b5704
commit 3b8da1d3d6
295 files changed
+6404 -4161

No files matched your search

+15 -6
View File
@@ -15,18 +15,27 @@ TextStyle inputErrorStyle(BuildContext context) =>
class AppTheme {
static DropdownDisplay getDisplayOptions(ThemeMode theme) {
switch(theme) {
switch (theme) {
case ThemeMode.system:
return DropdownDisplay(icon: Icons.auto_fix_high_outlined, displayName: 'Systemvorgabe');
return DropdownDisplay(
icon: Icons.auto_fix_high_outlined,
displayName: 'Systemvorgabe',
);
case ThemeMode.light:
return DropdownDisplay(icon: Icons.wb_sunny_outlined, displayName: 'Hell');
return DropdownDisplay(
icon: Icons.wb_sunny_outlined,
displayName: 'Hell',
);
case ThemeMode.dark:
return DropdownDisplay(icon: Icons.dark_mode_outlined, displayName: 'Dunkel');
return DropdownDisplay(
icon: Icons.dark_mode_outlined,
displayName: 'Dunkel',
);
}
}
static bool isDarkMode(BuildContext context) => Theme.of(context).brightness == Brightness.dark;
static bool isDarkMode(BuildContext context) =>
Theme.of(context).brightness == Brightness.dark;
}