getTextTheme static method
Get Comfortaa text theme backed by the bundled package font.
Implementation
static TextTheme getTextTheme(Color textColor) {
TextStyle s(double size, FontWeight w) => TextStyle(
fontFamily: _kFontFamily,
package: _kFontPackage,
fontSize: size,
fontWeight: w,
color: textColor,
);
return TextTheme(
displayLarge: s(57, FontWeight.w400),
displayMedium: s(45, FontWeight.w400),
displaySmall: s(36, FontWeight.w400),
headlineLarge: s(32, FontWeight.w600),
headlineMedium: s(28, FontWeight.w600),
headlineSmall: s(24, FontWeight.w600),
titleLarge: s(22, FontWeight.w500),
titleMedium: s(16, FontWeight.w500),
titleSmall: s(14, FontWeight.w500),
bodyLarge: s(16, FontWeight.w400),
bodyMedium: s(14, FontWeight.w400),
bodySmall: s(12, FontWeight.w400),
labelLarge: s(14, FontWeight.w500),
labelMedium: s(12, FontWeight.w500),
labelSmall: s(11, FontWeight.w500),
);
}