fix: Dark theme

This commit is contained in:
Christian Pauly 2021-01-24 16:45:05 +01:00
parent 189f65a544
commit 0bd0e58b95

View File

@ -66,7 +66,7 @@ abstract class FluffyThemes {
), ),
); );
static ThemeData dark = light.copyWith( static ThemeData dark = ThemeData.dark().copyWith(
primaryColorDark: Color(0xff121212), primaryColorDark: Color(0xff121212),
primaryColorLight: Colors.white, primaryColorLight: Colors.white,
primaryColor: Color(0xFF8966CF), primaryColor: Color(0xFF8966CF),
@ -76,6 +76,20 @@ abstract class FluffyThemes {
accentColor: Color(0xFFF5B4D2), accentColor: Color(0xFFF5B4D2),
secondaryHeaderColor: Color(0xff1D1D1D), secondaryHeaderColor: Color(0xff1D1D1D),
textTheme: Typography.material2018().white.merge(fallback_text_theme), textTheme: Typography.material2018().white.merge(fallback_text_theme),
dialogTheme: DialogTheme(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8.0),
),
),
popupMenuTheme: PopupMenuThemeData(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8.0),
),
),
floatingActionButtonTheme: FloatingActionButtonThemeData(
backgroundColor: AppConfig.primaryColor,
foregroundColor: Colors.white,
),
appBarTheme: AppBarTheme( appBarTheme: AppBarTheme(
brightness: Brightness.dark, brightness: Brightness.dark,
color: Color(0xff1D1D1D), color: Color(0xff1D1D1D),