dart format

This commit is contained in:
2026-05-08 20:12:40 +02:00
parent 9e139b5704
commit 3b8da1d3d6
295 changed files with 6404 additions and 4161 deletions
+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;
}
+2 -2
View File
@@ -7,7 +7,7 @@ class LightAppTheme {
brightness: Brightness.light,
colorScheme: ColorScheme.fromSeed(seedColor: marianumRed),
floatingActionButtonTheme: const FloatingActionButtonThemeData(
foregroundColor: Colors.white
)
foregroundColor: Colors.white,
),
);
}