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 = {
AcxTextType.h4: 36,
AcxTextType.h5: 25,
AcxTextType.h6: 21,
AcxTextType.sh1: 17,
AcxTextType.sh2: 15,
AcxTextType.button: 13,
AcxTextType.caption: 12,
AcxTextType.overline: 10,
// Material Design 3
AcxTextType.d1: 57,
AcxTextType.d2: 45,
AcxTextType.d3: 36,
AcxTextType.h1: 32,
AcxTextType.h2: 28,
AcxTextType.h3: 26,
AcxTextType.t1: 22,
AcxTextType.t2: 16,
AcxTextType.t3: 14,
AcxTextType.l1: 14,
AcxTextType.l2: 12,
AcxTextType.l3: 11,
AcxTextType.b1: 16,
AcxTextType.b2: 14,
AcxTextType.b3: 12,
};
_defaultTextFontWeight = {
// Material Design 2 (Old)
AcxTextType.h4: 500,
AcxTextType.h5: 500,
AcxTextType.h6: 500,
AcxTextType.sh1: 500,
AcxTextType.sh2: 500,
AcxTextType.button: 500,
AcxTextType.caption: 500,
AcxTextType.overline: 500,
//Material Design 3
AcxTextType.d1: 500,
AcxTextType.d2: 500,
AcxTextType.d3: 500,
AcxTextType.h1: 500,
AcxTextType.h2: 500,
AcxTextType.h3: 500,
AcxTextType.t1: 500,
AcxTextType.t2: 500,
AcxTextType.t3: 500,
AcxTextType.l1: 600,
AcxTextType.l2: 600,
AcxTextType.l3: 600,
AcxTextType.b1: 500,
AcxTextType.b2: 500,
AcxTextType.b3: 500,
};
_defaultLetterSpacing = {
AcxTextType.h4: 0,
AcxTextType.h5: 0,
AcxTextType.h6: 0,
AcxTextType.sh1: 0.15,
AcxTextType.sh2: 0.15,
AcxTextType.button: 0.15,
AcxTextType.caption: 0.15,
AcxTextType.overline: 0.15,
//Material Design 3
AcxTextType.d1: -0.25,
AcxTextType.d2: 0,
AcxTextType.d3: 0,
AcxTextType.h1: -0.2,
AcxTextType.h2: -0.15,
AcxTextType.h3: 0,
AcxTextType.t1: 0,
AcxTextType.t2: 0.1,
AcxTextType.t3: 0.1,
AcxTextType.l1: 0.1,
AcxTextType.l2: 0.5,
AcxTextType.l3: 0.5,
AcxTextType.b1: 0.5,
AcxTextType.b2: 0.25,
AcxTextType.b3: 0.4,
};
}