fraunces static method

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

See:

Implementation

static TextStyle fraunces({
  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(
      'd63003c3b22a047676e8edbdc3e9d642440510d71587ad76fa8e868499d6597a',
      71212,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '5bb56a510a757e380145db5b1b5966cbd81d86b0da450eef5c84f2b1369875cf',
      71468,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'c04752ac3dcd3bbf8ea240ab78922a2e66ce1c2246ca2b11d0ce9de94fd5193c',
      71532,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'f5209b1363f353be89316b152e65fe8d1820c2c6962f4be8e7fb91674e968c72',
      71556,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '360d364fc8e94b5aa9fa0a497193365b81676487563d33006c3939c5007c6e00',
      71572,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '9902f708fb70ab05ca307ab3ffe282b074d218cbd65c0ce4ca1bb5270c065f56',
      71608,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'c52b502750aee2e9637181c133d544529b5ce31fb92f4aaf39e7e6ebc649bd72',
      71568,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'ca8d87210740bd2a677e3471ea58e19a855b060f161968db377d05c1bfa878de',
      71624,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '966c4871b8ba0e8c580a7c6b7edcf2710c4d2e21f2ca4a9cc6da7d925a3c0b61',
      71664,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '93ca3625d064cd8ce2b33a50020e9e145c7a7344346dfb06447fbb14a9c6ac98',
      84816,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '03df19594cfb10aa6ddf1169e5a24d6e013cc98a0d425d9bd33642e21a799313',
      84996,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'de7aadb42aa8c738764dba6247fe4682edfd9937ccb62c8abd8a56d999b7b2cd',
      85052,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'c5b5e0df335d90d8fc09a5829a5de3e40d014d77e89277189a37bc903031bade',
      85000,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '0194f4ae8c0587430e39bb3d5e3b9dad3fb9d5b1b3d5b79c8e1c83c02c249e78',
      85084,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '65909af62b187f318702db635efbb9aea4b6d593d78019b45d0eaa9890ea38bc',
      85156,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '401728cf48a6d471a6e0b7aeb842f8d200394b6c098e7ffc9927e5076d3e9514',
      85056,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'f81c4803e53617ac38b45daf6d23f63a5e664fc030ffadba8ff3cd51d5ac66e7',
      85088,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '7666b30f17302ec20d7881f63d09de63303475bf82ab7f76c0b6d9af0517025f',
      85040,
    ),
  };

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