kdamThmorTextTheme static method
Applies the Kdam Thmor font family from Google Fonts to every
TextStyle in the given textTheme
.
See:
Implementation
static TextTheme kdamThmorTextTheme([TextTheme? textTheme]) {
textTheme ??= ThemeData.light().textTheme;
return TextTheme(
displayLarge: GoogleFonts.kdamThmor(textStyle: textTheme.displayLarge),
displayMedium: GoogleFonts.kdamThmor(textStyle: textTheme.displayMedium),
displaySmall: GoogleFonts.kdamThmor(textStyle: textTheme.displaySmall),
headlineLarge: GoogleFonts.kdamThmor(textStyle: textTheme.headlineLarge),
headlineMedium:
GoogleFonts.kdamThmor(textStyle: textTheme.headlineMedium),
headlineSmall: GoogleFonts.kdamThmor(textStyle: textTheme.headlineSmall),
titleLarge: GoogleFonts.kdamThmor(textStyle: textTheme.titleLarge),
titleMedium: GoogleFonts.kdamThmor(textStyle: textTheme.titleMedium),
titleSmall: GoogleFonts.kdamThmor(textStyle: textTheme.titleSmall),
bodyLarge: GoogleFonts.kdamThmor(textStyle: textTheme.bodyLarge),
bodyMedium: GoogleFonts.kdamThmor(textStyle: textTheme.bodyMedium),
bodySmall: GoogleFonts.kdamThmor(textStyle: textTheme.bodySmall),
labelLarge: GoogleFonts.kdamThmor(textStyle: textTheme.labelLarge),
labelMedium: GoogleFonts.kdamThmor(textStyle: textTheme.labelMedium),
labelSmall: GoogleFonts.kdamThmor(textStyle: textTheme.labelSmall),
);
}