palanquin method

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

See:

Implementation

static TextStyle palanquin({
  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>{
    GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'c2f2587b9d7e9715b99bbe03f6115a2dcf52f8cb016c7e31f06e26561f3f13bb',
      273560,
    ),
    GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'e3ae6db39173fbbc643b90005a108980c36ea6111e91516ed3e754cd247f965d',
      275156,
    ),
    GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '94dbed29146fdc39c8979eff474e5210368a5276c9c7b55706418b745036a240',
      276496,
    ),
    GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'a3fd79ddbba4270727bcb4649e1015a2726418eef7abd8cb984139bca11f5df5',
      284496,
    ),
    GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'c027a6ee638527b57eed686cb93382141e9da3ad55c331614b735f4b26dfe2f9',
      283708,
    ),
    GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'e342fbd31bc4d7a837724b2e51ac0c6e4057d44809e8e984d2c72c0b0a3dc48a',
      283824,
    ),
    GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'a1812757fe429bab601701c1010e05f49540ea857170789a8ee91e0fe1d5e9d2',
      272160,
    ),
  };

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