sourceSans3TextTheme static method

TextTheme sourceSans3TextTheme([
  1. TextTheme? textTheme
])

Applies the Source Sans 3 font family from Google Fonts to every TextStyle in the given textTheme.

See:

Implementation

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