libreFranklin static method

TextStyle libreFranklin({
  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 Libre Franklin font family from Google Fonts to the given textStyle.

See:

Implementation

static TextStyle libreFranklin({
  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.w100,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '58e10ad1feec091f1e7068030bd3e174ad4cb1bcaf779089c22b5ec9a1726b3a',
      61496,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '678fc0e1c87dc1fe5fd9f77c0bffc7ce5178f176eec35dcb4faaa138f8015a07',
      61620,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'b27a034c08a01a3e03459b7f07a20d94317f0222cab1f39590b2c826ca45f791',
      61636,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '2c289e1f38ee034160ebb71ac56855ae7d2bba852d68ba525b976ec412ab40e4',
      61644,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '2e8fb49d6a614ad3c5403b5baa98f7d87159bdbf29c1cd46f4d2be05463bbf37',
      61664,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'c1ac802bcedb58389f4dbe7c0d684aa38a90fc57aa22ad19e6b7acb93da76659',
      61680,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '8befc8c22669eb785b421dd26031c806ea58671ba62676e743bb76a1fdd9e0d1',
      61564,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '09e81840753faa24a32fd604815f5302e259214d4378ca355a2c6b585797b73b',
      61608,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '344f438314e6eb834d040d234d00c43e72d3b74f711ae5e0de03bcf6efc2710e',
      61540,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '5d35f37ad7475edea187696dfb7984118b9460894aee1a1b40be17a00698c448',
      66340,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '4d1028f58aca3c7b1da52dcdd5fad554d75c437ea88eb187a1de939ec91c6a87',
      66492,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '319ac23b7a1509f16d0301aaecaeae8c592c96d406d637c44eba988bf3001d72',
      66448,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '66b19a246afd09f017b025da863fe1c04f741390dfce10670dc801a426a2ccbe',
      66396,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'b50a1b5a98301b96f1be90cc83452395218c0635e2dd97b2f1bf3d1b35b442a2',
      66552,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '9deb3c1f4c30ac1e5f21387a02e9c498d630e51f3da13ed29cc932b2677b92a1',
      66548,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '68ce2584e33c23a06228354ba253098d618b0a88d45a30c78c02e1fcef01c4c8',
      66352,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'e73284d67daa2cd2972d08deb3a8f1b44b60fab3243f1ccced65037da30a0a5b',
      66500,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '49a6c7fc056d1bf7c3ac00e135d43a16dcf1b3cff73a2453b06a019733473c60',
      66432,
    ),
  };

  return googleFontsTextStyle(
    textStyle: textStyle,
    fontFamily: 'LibreFranklin',
    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,
  );
}