poorStoryTextTheme static method

TextTheme poorStoryTextTheme(
  1. [TextTheme? textTheme]
)

Applies the Poor Story font family from Google Fonts to every TextStyle in the given textTheme.

See:

Implementation

static TextTheme poorStoryTextTheme([TextTheme? textTheme]) {
  textTheme ??= ThemeData.light().textTheme;
  return TextTheme(
    displayLarge: GoogleFonts.poorStory(textStyle: textTheme.displayLarge),
    displayMedium: GoogleFonts.poorStory(textStyle: textTheme.displayMedium),
    displaySmall: GoogleFonts.poorStory(textStyle: textTheme.displaySmall),
    headlineLarge: GoogleFonts.poorStory(textStyle: textTheme.headlineLarge),
    headlineMedium:
        GoogleFonts.poorStory(textStyle: textTheme.headlineMedium),
    headlineSmall: GoogleFonts.poorStory(textStyle: textTheme.headlineSmall),
    titleLarge: GoogleFonts.poorStory(textStyle: textTheme.titleLarge),
    titleMedium: GoogleFonts.poorStory(textStyle: textTheme.titleMedium),
    titleSmall: GoogleFonts.poorStory(textStyle: textTheme.titleSmall),
    bodyLarge: GoogleFonts.poorStory(textStyle: textTheme.bodyLarge),
    bodyMedium: GoogleFonts.poorStory(textStyle: textTheme.bodyMedium),
    bodySmall: GoogleFonts.poorStory(textStyle: textTheme.bodySmall),
    labelLarge: GoogleFonts.poorStory(textStyle: textTheme.labelLarge),
    labelMedium: GoogleFonts.poorStory(textStyle: textTheme.labelMedium),
    labelSmall: GoogleFonts.poorStory(textStyle: textTheme.labelSmall),
  );
}