publicSans static method

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

See:

Implementation

static TextStyle publicSans({
  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(
      'f99986497d4f62ffa8af50a0516021a0c44f128da346bf8c5a9a2ab28e8af52a',
      52720,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'ea57af2783c8fc964b810bee8c8d5fc143cce7668333024a2e9195154447f771',
      52908,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '76b66b55f4dbedf4b414865bfcea8606a99dfeefa2c1e4204c6d7b7eba4a72cf',
      52876,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '9c445a076386fe7e68400d777697ad048559e65882accd9637880d898c747ac2',
      52844,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '948162c9588d3dec2cce89296e38807880276b85c7332856e088e0f3a92197bf',
      52868,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'a63b31db94a45ed9feed4cf2b7b1282066bfa12a3778c6ffde23dae446caf43d',
      52960,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'c253fda40bfd5c42896cd4a32dc6b2dab6c9079cb772c777d0040f12d6de354d',
      52996,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '645f6bfe514e7e6684c37fd325403365eaef9422bd022f830d8d528dfe096a85',
      53168,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '72b29f898217a75e78febf0e30cf48cead4d9946db16766e356b557926f892d1',
      53064,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'a419540821f28ba83e14b046e3f0146e119b3609c1ed6f5d7037d338896faa41',
      53024,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'd1c884f6cff4fe33691bca22648e73544fcaabe1020b175d878e03df7ab1ab42',
      53156,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '0b27515a2e08ad4662a2a4edd5de56be573a7fba850321a3c6b05866d309ddb6',
      53112,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '697de5b31a0a6483f7c289995bfb66320b734358e6c35b372b38047367b64f27',
      52960,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '008ac139feac90c5fbf67105be4f7fedd3048f04ff917dbea375844a5b26a39e',
      53088,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'dc7a4bb9f8a81b219806c1f5562eeeddac1e056b05aa43832b8f947e2dae42fd',
      53164,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '7fa083fe1ddc5996c24b9824e67c92695fb4387bbe5cce1f4ac0ae7e8ef6cf85',
      53200,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'c1032c303a3bafd2751a8c4ceef13674445d542f70498d527c289db449c4d8d7',
      53424,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '5e24bd1a24b9d97fe8f35a98bea6fc07c818cf67e1cb4e5378b028b407a8e4aa',
      53368,
    ),
  };

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