rokkitt static method

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

See:

Implementation

static TextStyle rokkitt({
  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(
      '21f9eb4761cafbefd0908bba1f0a3827ef99cc35ff7cf46cdfb1e1c60c9ed6fe',
      68416,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '8f58144e5a091761505990144ec4fbd361917961dd327776aa4102bda3389654',
      68612,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '8c0f6a3e8a783731c45dce6c8719c063509c4b57c0386b87f7d8d89a8aefdeb5',
      68648,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '0b87bee318cb92e6e3cf9866d04ef5d8e372407132689a127f3cc8b2baa97f79',
      68596,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '7a5a13dd20ad63f53af27b31a455cb5530b42a973e98e23a4a0f84774dde2a4f',
      68604,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'e1b03c90c58cd62385bab4d7115b449aefa6b997ce13919675607de1b50d97ee',
      69124,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '1901791524f1d0f0ce38093ae4e54fde5dd7992324097f41fbf1412cb076d3a1',
      69092,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '5b67f2a2246402cd48e6565259070fafc9526f64257fd73e25d2b14820b778b4',
      69172,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '54065f4f1b2f4c770c615fb079180735e76a9c73b00d492a7f2da2fcebc2263d',
      68844,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '927f2f7650fd90c6fc913ce4fc0958b563cbe2f8392081bb4512a3b9c181f744',
      69744,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'ac67000cf931144afdaf16087bb351b8db577ea3c6c73553a253bc8083661119',
      69996,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '76f306c2ade23412d1873225547495c229b6bbcca3b7baf54f751d6d5bb0b802',
      70000,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '8952a2af0e8f7ff8e8f8058112e5e2b6a8a1e57afe592ca47948210afa2d7194',
      69848,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '176c651bdf0584f76914ee51c84a00e2ab1066be92192f44a6d67215d2fd65e7',
      69972,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'b8bb843c60d16db0fb1da122d9962d90a8aec7ab46f31f93ee901c5e7b7f089d',
      70240,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '6fdfd1fb404c7975e9beb0d7096cc5d6ccad88e6a6e297d6c090346e2f9f3b3d',
      70160,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '271af344b07bfb31da4bc8d76091608402296d066b8f62a97339ab7878f8737b',
      70260,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'd4cc8699c3d85767085f0c38470064e7bbba0a636afeac08292398eb64f10d02',
      70096,
    ),
  };

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