ibmPlexSans static method

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

See:

Implementation

static TextStyle ibmPlexSans({
  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(
      '1ca403e532290cdbd84cdb89c5f11588fe0457e6bd24bf14ad2a50986eba8657',
      118600,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '38f92da1c087acea4544253757e1ac0acf7ff813e48a9e4e01a65ab74612a2cd',
      128168,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '170e854abf2b38ab1a1a718aea3465a84c0c749b5802781c4c5d95e2886f7cdb',
      121544,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '16d313753ee3b6fc30a0245773c36acf6399a179ec28a15bc9cd4e15808b0b70',
      130820,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '64cd24953effa939c2b86e16e9ea366221c449031ad71e5ed7ac2e110bb75c19',
      121444,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'df113918b5c1197a598ae7283e5052eb08e67dd53b74d1eee25d0b917da56727',
      130380,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'ba2706366b97fffdc6b21fa6925a1c5d4dbc53016358b4500d3a4cb518ac6357',
      119864,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '5a3008026998bf82d9d91b69aa9fbbd3158ba9cdbffdd0637c08667ab2078520',
      127992,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '15185290450717a027ddee491fe3417c49e4e330a683e6fb5e20faedba2a17bd',
      121464,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '5d7308746ad0a644069e70d9b7ad4ff2867fb6507f199c414cfe83b8eb99f472',
      130104,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'c5bbec1309cfb782a5573115d669a8399d6f884d4f42a641b205e55896f16fdf',
      121260,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '04831c960926ad94c1651e3cd51b12ba8e0d578a346d855bb186d5b6d5ec43d3',
      130200,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '92e444f99e9d151c23f75ed6ea01e1d97f4af74dcd11395ad34969ca1fe91ae3',
      119672,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '4d95895d491efbe28a5d65728c363c73a52baa9456b155e801f1f37ed36b2620',
      128316,
    ),
  };

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