spectralSc static method

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

See:

Implementation

static TextStyle spectralSc({
  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.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '1a3d8a2532f1524538260db7dc21f40166e504b0c3c9205dc5637dd93b4727e1',
      111052,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '083f5769ad597af17525bf1ad7d22a20922b38d8243be4089bf9d2653ee328ab',
      123440,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'ee1aead7288f7f63e6554688b8afdc11eee588bd9a67566a0aba58747dedd3d3',
      127684,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'ca8baa670a8f95d0d2d3e9fff79293d013ece77f559cfa87461be1238e6ec548',
      133812,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '0d0e56c01b8783bacf61687889b48ef7fe232760678f372261b3e76ade417362',
      125836,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '023819b3b922add7b340a768e22015ebeb01481929a89b1b92fed7972a9f6954',
      128060,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '1ab43f1fb08aadee5bb4f0d9a73a4188847aa6201f097aa2a10a44f15869bf76',
      132616,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'f0758a4eadb200ef41e00fefbd34eb7df81132d67a0c1af715eb4ce5c8e5a4bb',
      135228,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '44fd420fb2fbea26227859938c5ade869e46c7b134cb2f695d3cc39f24d487ca',
      132696,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '03e1b32ce4ed6115cb37203c70ff6289f3c84067be879554475b4e95b995a670',
      135212,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'ebea0e64a508929bc0099cdc2d2705bb059f7485c461f7f00aace57315d2aade',
      132588,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '41e96a53853e5d81d56e2015ed9ccfc0b0fc60d2d9d6c5017601b30a12752706',
      135356,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'd44c9d1ee53a5c6b5b5e94e40ecfb808d96dc1da1ba238a5199aa5b5d0970be7',
      126148,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '91f8c2c26d419101305642d2c51929a8cfe8293138f8e2bbebf5753a6d50790c',
      130432,
    ),
  };

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