|
@@ -22,14 +22,12 @@ class ThemeConfig {
|
|
|
final baseTextTheme = brightness == Brightness.dark ? Typography.blackMountainView : Typography.whiteMountainView;
|
|
|
|
|
|
return ThemeData(
|
|
|
+ primaryColor: accentColor,
|
|
|
brightness: brightness,
|
|
|
canvasColor: background,
|
|
|
cardColor: background,
|
|
|
dividerColor: divider,
|
|
|
- backgroundColor: background,
|
|
|
- primaryColor: accentColor,
|
|
|
- toggleableActiveColor: accentColor,
|
|
|
- errorColor: error,
|
|
|
+ scaffoldBackgroundColor: background,
|
|
|
unselectedWidgetColor: hexToColor('#DADCDD'),
|
|
|
dividerTheme: DividerThemeData(
|
|
|
color: divider,
|
|
@@ -95,72 +93,6 @@ class ThemeConfig {
|
|
|
fontWeight: FontWeight.w300,
|
|
|
),
|
|
|
),
|
|
|
- textTheme: TextTheme(
|
|
|
- headline1: baseTextTheme.headline1!.copyWith(
|
|
|
- color: primaryText,
|
|
|
- fontSize: 34.0,
|
|
|
- fontWeight: FontWeight.bold,
|
|
|
- ),
|
|
|
- headline2: baseTextTheme.headline2!.copyWith(
|
|
|
- color: primaryText,
|
|
|
- fontSize: 22,
|
|
|
- fontWeight: FontWeight.bold,
|
|
|
- ),
|
|
|
- headline3: baseTextTheme.headline3!.copyWith(
|
|
|
- color: secondaryText,
|
|
|
- fontSize: 20,
|
|
|
- fontWeight: FontWeight.w600,
|
|
|
- ),
|
|
|
- headline4: baseTextTheme.headline4!.copyWith(
|
|
|
- color: primaryText,
|
|
|
- fontSize: 18,
|
|
|
- fontWeight: FontWeight.w600,
|
|
|
- ),
|
|
|
- headline5: baseTextTheme.headline5!.copyWith(
|
|
|
- color: primaryText,
|
|
|
- fontSize: 16,
|
|
|
- fontWeight: FontWeight.w700,
|
|
|
- ),
|
|
|
- headline6: baseTextTheme.headline6!.copyWith(
|
|
|
- color: primaryText,
|
|
|
- fontSize: 14,
|
|
|
- fontWeight: FontWeight.w700,
|
|
|
- ),
|
|
|
- bodyText1: baseTextTheme.bodyText1!.copyWith(
|
|
|
- color: secondaryText,
|
|
|
- fontSize: 15,
|
|
|
- ),
|
|
|
- bodyText2: baseTextTheme.bodyText2!.copyWith(
|
|
|
- color: primaryText,
|
|
|
- fontSize: 12,
|
|
|
- fontWeight: FontWeight.w400,
|
|
|
- ),
|
|
|
- button: baseTextTheme.button!.copyWith(
|
|
|
- color: primaryText,
|
|
|
- fontSize: 12.0,
|
|
|
- fontWeight: FontWeight.w700,
|
|
|
- ),
|
|
|
- caption: baseTextTheme.caption!.copyWith(
|
|
|
- color: primaryText,
|
|
|
- fontSize: 11.0,
|
|
|
- fontWeight: FontWeight.w300,
|
|
|
- ),
|
|
|
- overline: baseTextTheme.overline!.copyWith(
|
|
|
- color: secondaryText,
|
|
|
- fontSize: 11.0,
|
|
|
- fontWeight: FontWeight.w500,
|
|
|
- ),
|
|
|
- subtitle1: baseTextTheme.subtitle1!.copyWith(
|
|
|
- color: primaryText,
|
|
|
- fontSize: 16.0,
|
|
|
- fontWeight: FontWeight.w700,
|
|
|
- ),
|
|
|
- subtitle2: baseTextTheme.subtitle2!.copyWith(
|
|
|
- color: secondaryText,
|
|
|
- fontSize: 11.0,
|
|
|
- fontWeight: FontWeight.w500,
|
|
|
- ),
|
|
|
- ),
|
|
|
);
|
|
|
}
|
|
|
|