inter method

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

See:

Implementation

static TextStyle inter({
  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(
      '897d64cd0dfbeb56e7867aff5fb59519c0a18eaa535b4d4f9d636ac43028afb5',
      257128,
    ),
    GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'a8c528f80a6ad8d07eb0a822ff9763e3286ce1463b1cd881cafbc2d3d9018512',
      256936,
    ),
    GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '7cedc5ced62f88258ed3781a814ff426d7c63e5ef822bc77e66b393b3316ce86',
      256628,
    ),
    GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '74b0b48ce5240039e1a17c62f24f5abc322d3d77d4bf96efcdad6d637123cc9d',
      256476,
    ),
    GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '177913939a2c83016eaf35b8dcf5b863fcb5d8e86fcb78a14ad753d055d06436',
      257944,
    ),
    GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'f0a9e5b2bc1eef6c3241a779a62cea7c34b88535d7e586390fdcdf28ab01d673',
      258828,
    ),
    GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '94c9d9a14fc9ae26fd08041b634823238718b745b8a34986ddfb57cf3db367da',
      259260,
    ),
    GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'e5493c1e805b48142688a216308108352fd538721635d7f990c47996dcf8e2c4',
      259864,
    ),
    GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'a2a712f761390199ddad75da5123d6f97f529f5d6dab247f94ceb954a8fe381e',
      260212,
    ),
  };

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