diff options
Diffstat (limited to 'lib/settings/themes.dart')
-rw-r--r-- | lib/settings/themes.dart | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/lib/settings/themes.dart b/lib/settings/themes.dart index cc506a9..b9a09d7 100644 --- a/lib/settings/themes.dart +++ b/lib/settings/themes.dart @@ -1,18 +1,20 @@ import 'package:flutter/material.dart'; +enum ThemeEnum { light, dark, auto } + class ThemeSettings { - static ThemeData lightTheme = ThemeData( - useMaterial3: true, - primaryColor: Colors.purple, - fontFamily: 'Manrope', - ); + static ThemeData lightTheme(ColorScheme? lightDynamic) => ThemeData( + useMaterial3: true, + primaryColor: Colors.purple, + fontFamily: 'Manrope', + colorScheme: lightDynamic, + ); - static ThemeData darkTheme = ThemeData( - useMaterial3: true, - brightness: Brightness.dark, - fontFamily: 'Manrope', - colorScheme: const ColorScheme.dark().copyWith( - primary: Colors.purple, - ), - ); + static ThemeData darkTheme(ColorScheme? darkDynamic) => ThemeData( + useMaterial3: true, + brightness: Brightness.dark, + fontFamily: 'Manrope', + primaryColor: Colors.purple, + colorScheme: (darkDynamic ?? const ColorScheme.dark()), + ); } |