fix: Further improvements on app theming

This commit is contained in:
Alberto Ponces
2022-09-07 12:01:04 +01:00
parent 3b830cf15a
commit 1e890708d2
11 changed files with 98 additions and 46 deletions

View File

@ -29,10 +29,16 @@ class DynamicThemeBuilder extends StatelessWidget {
backgroundColor: lightColorScheme?.background,
indicatorColor: lightColorScheme?.primary.withAlpha(150),
labelTextStyle: MaterialStateProperty.all(
const TextStyle(
GoogleFonts.roboto(
color: lightColorScheme?.secondary,
fontWeight: FontWeight.w500,
),
),
iconTheme: MaterialStateProperty.all(
IconThemeData(
color: lightColorScheme?.secondary,
),
),
),
scaffoldBackgroundColor: lightColorScheme?.background,
colorScheme: lightColorScheme?.harmonized(),
@ -46,13 +52,14 @@ class DynamicThemeBuilder extends StatelessWidget {
backgroundColor: darkColorScheme?.background,
indicatorColor: darkColorScheme?.primary.withOpacity(0.4),
labelTextStyle: MaterialStateProperty.all(
const TextStyle(
GoogleFonts.roboto(
color: darkColorScheme?.secondary,
fontWeight: FontWeight.w500,
),
),
iconTheme: MaterialStateProperty.all(
const IconThemeData(
color: Colors.white,
IconThemeData(
color: darkColorScheme?.secondary,
),
),
),