getTextTheme static method

TextTheme getTextTheme(
  1. Color textColor
)

Get Comfortaa text theme

Implementation

static TextTheme getTextTheme(Color textColor) {
  return GoogleFonts.comfortaaTextTheme().copyWith(
    displayLarge: GoogleFonts.comfortaa(fontSize: 57, fontWeight: FontWeight.w400, color: textColor),
    displayMedium: GoogleFonts.comfortaa(fontSize: 45, fontWeight: FontWeight.w400, color: textColor),
    displaySmall: GoogleFonts.comfortaa(fontSize: 36, fontWeight: FontWeight.w400, color: textColor),
    headlineLarge: GoogleFonts.comfortaa(fontSize: 32, fontWeight: FontWeight.w600, color: textColor),
    headlineMedium: GoogleFonts.comfortaa(fontSize: 28, fontWeight: FontWeight.w600, color: textColor),
    headlineSmall: GoogleFonts.comfortaa(fontSize: 24, fontWeight: FontWeight.w600, color: textColor),
    titleLarge: GoogleFonts.comfortaa(fontSize: 22, fontWeight: FontWeight.w500, color: textColor),
    titleMedium: GoogleFonts.comfortaa(fontSize: 16, fontWeight: FontWeight.w500, color: textColor),
    titleSmall: GoogleFonts.comfortaa(fontSize: 14, fontWeight: FontWeight.w500, color: textColor),
    bodyLarge: GoogleFonts.comfortaa(fontSize: 16, fontWeight: FontWeight.w400, color: textColor),
    bodyMedium: GoogleFonts.comfortaa(fontSize: 14, fontWeight: FontWeight.w400, color: textColor),
    bodySmall: GoogleFonts.comfortaa(fontSize: 12, fontWeight: FontWeight.w400, color: textColor),
    labelLarge: GoogleFonts.comfortaa(fontSize: 14, fontWeight: FontWeight.w500, color: textColor),
    labelMedium: GoogleFonts.comfortaa(fontSize: 12, fontWeight: FontWeight.w500, color: textColor),
    labelSmall: GoogleFonts.comfortaa(fontSize: 11, fontWeight: FontWeight.w500, color: textColor),
  );
}