dart format
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user