sourceSerif4 static method

TextStyle sourceSerif4({
  1. TextStyle? textStyle,
  2. Color? color,
  3. Color? backgroundColor,
  4. double? fontSize,
  5. FontWeight? fontWeight,
  6. FontStyle? fontStyle,
  7. double? letterSpacing,
  8. double? wordSpacing,
  9. TextBaseline? textBaseline,
  10. double? height,
  11. Locale? locale,
  12. Paint? foreground,
  13. Paint? background,
  14. List<Shadow>? shadows,
  15. List<FontFeature>? fontFeatures,
  16. TextDecoration? decoration,
  17. Color? decorationColor,
  18. TextDecorationStyle? decorationStyle,
  19. double? decorationThickness,
})

Applies the Source Serif 4 font family from Google Fonts to the given textStyle.

See:

Implementation

static TextStyle sourceSerif4({
  TextStyle? textStyle,
  Color? color,
  Color? backgroundColor,
  double? fontSize,
  FontWeight? fontWeight,
  FontStyle? fontStyle,
  double? letterSpacing,
  double? wordSpacing,
  TextBaseline? textBaseline,
  double? height,
  Locale? locale,
  Paint? foreground,
  Paint? background,
  List<ui.Shadow>? shadows,
  List<ui.FontFeature>? fontFeatures,
  TextDecoration? decoration,
  Color? decorationColor,
  TextDecorationStyle? decorationStyle,
  double? decorationThickness,
}) {
  final fonts = <GoogleFontsVariant, GoogleFontsFile>{
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'a662aafc4b745a925576dfb93f1d91049f17d4c578e4daf78c1175502a1fbc35',
      193572,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '104fd50b172517935587b33f5ba32d35e51a8240514d5b706a2767bb3d16ff88',
      193728,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '92d7f0ce0d15f8a267e2064969c5569caf1f1ff4afc4bdb175269106baa081c3',
      193684,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '0cb3e80fe27eabd2f9b56956134829ea90d0bad4d9f8aef99ff26d38ec96e954',
      193936,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '856e285e3093f1d814c5747319329322d6f27ec3450e1fbfe39611c77c0b8b7a',
      194020,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'b2d772a36c80c44bc2ebf2430e35a95256bad0e88d86b151b65461e9dbbd41d1',
      193980,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'cc70475fa83bb65f7d3b31ddbf8f8a30b48debe30485afccc37170503ac04300',
      194012,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '1e6c6816fc962fd4d4573d1cd427bb4f2e802aba774f07ab42e7196a5ad5f8c3',
      193936,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '35f0547f3f6470d21d2eb17d2794224984ff1f2a3dfabb6b28fb164a1cb857bb',
      182088,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'cf3b55fbcd92ae14fc6064e12334845c0d4ff62daed10eb507aeab6f656652b0',
      182216,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'b479d770b92407eb1ba984ab573e3158a778f6cd50fe8ee8cd4c435c12c80e2a',
      182072,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '2952900cb5e684bbd24c4fef534ed0776d07d3775bc4e099415a87980fcda526',
      182240,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'aec9022d57a5fa195c00cfe0b1e3aa484f1ea704c4486ef1d0a564face319c01',
      182212,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'f78efe5b67c7b5950d21b7384bc4ab4c9b4c61ff03224aca305cbc27cff82443',
      182168,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'c6e352b6dfddceb5d1a76143f79bfeabd3f0602ac30e62081467a67e18ab943d',
      182280,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'b67797e7fde59add1c9f5c0d73834062982bcd2cd8d4bf25bcbf56d5e8c36ab7',
      182244,
    ),
  };

  return googleFontsTextStyle(
    textStyle: textStyle,
    fontFamily: 'SourceSerif4',
    color: color,
    backgroundColor: backgroundColor,
    fontSize: fontSize,
    fontWeight: fontWeight,
    fontStyle: fontStyle,
    letterSpacing: letterSpacing,
    wordSpacing: wordSpacing,
    textBaseline: textBaseline,
    height: height,
    locale: locale,
    foreground: foreground,
    background: background,
    shadows: shadows,
    fontFeatures: fontFeatures,
    decoration: decoration,
    decorationColor: decorationColor,
    decorationStyle: decorationStyle,
    decorationThickness: decorationThickness,
    fonts: fonts,
  );
}