genos static method

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

See:

Implementation

static TextStyle genos({
  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(
      'b9141149d8e235a8030b04ca4704e57c1adafc89bc5406c0de83c6e956c2aacb',
      74608,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '905157392bf17aeddf9d9e82a3989d217fe6216c840fe6f2872e41c1eb42243b',
      74780,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'edc818c74e3c1dace11955179bd8bc0d125334b1f8dfe056ce0c03e9de560a78',
      74740,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'd8d54fe7e9c9274c5c7881203ba146ab9ea1cd3a190da418f8c3fb81eb47d235',
      74776,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'f04eafc155814fce81098e676b64906cb16c4df88e725c7f8926e5a1e08c15bb',
      74704,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '264ce3c7a7fd862227bb9e547ea0b45abb25f6fc24176c1ac0b20bdbfa320367',
      74724,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '8bb424b66d95c514e4593593d603ce7295420361823f8f8d000036f2f51ec898',
      74784,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '0ace9d7db4c6ed838578b9e0ca8019ebee0b3258bcde5596aaf632e553442e05',
      74808,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '43f94a43670de8d9f7571d392e184b7d56ea7be5cd65b010e568f417f7a51638',
      74432,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'c72cd09ed6e6c68ba497f6bf714be8720552ce3ad4e790945d4a1376dc7d4015',
      80668,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '5fbe58cf9195a58be9464ab76625ad22bd25d1375ec8844085622ec4cdbd5137',
      80796,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'af6e7c52f0fec96eb9da6acc18f842ce211943df016497f07d86fb6b39fc0f5a',
      80808,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '871899d5b755b6313f2733443cfe8707671f6e1f78e71de973afdbc18552c1ac',
      80716,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '79d366a64cd66d1bf4fea6334eec4503a7ec6216796449fc59d1916d0b2ec329',
      80892,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '87c67f9312f6f45c2902a2b319ce98b34cb1e9cb0d5b4c2a9f107bbfb65f8800',
      80916,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'faf8c2baa7c2277ca87ac1215feb590b1428f9841107b1c97fbd029d42a2f984',
      80864,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '441b317efe1b42bbe1c8976d935d3479eb21d06b022181fde1d718192cb36777',
      80824,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'e01ee18d845788c0383d7f8394cf05e8c7b2a20c881b3c5dbab9179f338318a5',
      80612,
    ),
  };

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