resetFontStyles static method
dynamic
resetFontStyles()
Implementation
static resetFontStyles() {
_fontFamily = GoogleFonts.ibmPlexSans;
_defaultFontWeight = {
100: FontWeight.w100,
200: FontWeight.w200,
300: FontWeight.w300,
400: FontWeight.w300,
500: FontWeight.w400,
600: FontWeight.w500,
700: FontWeight.w600,
800: FontWeight.w700,
900: FontWeight.w800,
};
_defaultTextSize = {
FxTextType.displayLarge: 57,
FxTextType.displayMedium: 45,
FxTextType.displaySmall: 36,
FxTextType.headlineLarge: 32,
FxTextType.headlineMedium: 28,
FxTextType.headlineSmall: 26,
FxTextType.titleLarge: 22,
FxTextType.titleMedium: 16,
FxTextType.titleSmall: 14,
FxTextType.labelLarge: 14,
FxTextType.labelMedium: 12,
FxTextType.labelSmall: 11,
FxTextType.bodyLarge: 16,
FxTextType.bodyMedium: 14,
FxTextType.bodySmall: 12,
FxTextType.h4: 36,
FxTextType.h5: 25,
FxTextType.h6: 21,
FxTextType.sh1: 17,
FxTextType.sh2: 15,
FxTextType.button: 13,
FxTextType.caption: 12,
FxTextType.overline: 10,
// Material Design 3
FxTextType.d1: 57,
FxTextType.d2: 45,
FxTextType.d3: 36,
FxTextType.h1: 32,
FxTextType.h2: 28,
FxTextType.h3: 26,
FxTextType.t1: 22,
FxTextType.t2: 16,
FxTextType.t3: 14,
FxTextType.l1: 14,
FxTextType.l2: 12,
FxTextType.l3: 11,
FxTextType.b1: 16,
FxTextType.b2: 14,
FxTextType.b3: 12,
};
_defaultTextFontWeight = {
FxTextType.displayLarge: 500,
FxTextType.displayMedium: 500,
FxTextType.displaySmall: 500,
FxTextType.headlineLarge: 500,
FxTextType.headlineMedium: 500,
FxTextType.headlineSmall: 500,
FxTextType.titleLarge: 500,
FxTextType.titleMedium: 500,
FxTextType.titleSmall: 500,
FxTextType.labelLarge: 600,
FxTextType.labelMedium: 600,
FxTextType.labelSmall: 600,
FxTextType.bodyLarge: 500,
FxTextType.bodyMedium: 500,
FxTextType.bodySmall: 500,
// Material Design 2 (Old)
FxTextType.h4: 500,
FxTextType.h5: 500,
FxTextType.h6: 500,
FxTextType.sh1: 500,
FxTextType.sh2: 500,
FxTextType.button: 500,
FxTextType.caption: 500,
FxTextType.overline: 500,
//Material Design 3
FxTextType.d1: 500,
FxTextType.d2: 500,
FxTextType.d3: 500,
FxTextType.h1: 500,
FxTextType.h2: 500,
FxTextType.h3: 500,
FxTextType.t1: 500,
FxTextType.t2: 500,
FxTextType.t3: 500,
FxTextType.l1: 600,
FxTextType.l2: 600,
FxTextType.l3: 600,
FxTextType.b1: 500,
FxTextType.b2: 500,
FxTextType.b3: 500,
};
_defaultLetterSpacing = {
FxTextType.displayLarge: -0.25,
FxTextType.displayMedium: 0,
FxTextType.displaySmall: 0,
FxTextType.headlineLarge: -0.2,
FxTextType.headlineMedium: -0.15,
FxTextType.headlineSmall: 0,
FxTextType.titleLarge: 0,
FxTextType.titleMedium: 0.1,
FxTextType.titleSmall: 0.1,
FxTextType.labelLarge: 0.1,
FxTextType.labelMedium: 0.5,
FxTextType.labelSmall: 0.5,
FxTextType.bodyLarge: 0.5,
FxTextType.bodyMedium: 0.25,
FxTextType.bodySmall: 0.4,
//@deprecated
FxTextType.h4: 0,
FxTextType.h5: 0,
FxTextType.h6: 0,
FxTextType.sh1: 0.15,
FxTextType.sh2: 0.15,
FxTextType.button: 0.15,
FxTextType.caption: 0.15,
FxTextType.overline: 0.15,
//Material Design 3
FxTextType.d1: -0.25,
FxTextType.d2: 0,
FxTextType.d3: 0,
FxTextType.h1: -0.2,
FxTextType.h2: -0.15,
FxTextType.h3: 0,
FxTextType.t1: 0,
FxTextType.t2: 0.1,
FxTextType.t3: 0.1,
FxTextType.l1: 0.1,
FxTextType.l2: 0.5,
FxTextType.l3: 0.5,
FxTextType.b1: 0.5,
FxTextType.b2: 0.25,
FxTextType.b3: 0.4,
};
}