rubik static method
- {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<
Shadow> ? shadows, - List<
FontFeature> ? fontFeatures, - TextDecoration? decoration,
- Color? decorationColor,
- TextDecorationStyle? decorationStyle,
- double? decorationThickness}
Applies the Rubik font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle rubik({
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.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'a346a6e2e79933812872bfda591c5f36ea10a7f7a8ceb26eab074187e56be5e3',
114836,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'67c15c8e82d1793fed4874d85a2c41f9727933ddcb68dae1fda6c1a09f962e06',
115412,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'3a12313cbb19f8ec324a772645b94b1ed1b933b9e06f4ea015b5a28fa8e5af03',
116028,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'4ac37ade4e3e9bd77bdd3c4fc33cf562c0f897b2104dedf03702154a51f3ade4',
116020,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'319f0f3714a0e9e113e5741cbc67db7a15e6f3e197c12b2cd16b83fbffe16645',
115940,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'a82a2c6f096a9ff2341f06bda3ac5d11600dda2ebed5970133176ddc9a790a65',
115812,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'44ae0a7dfe590da4d537dcabf8d98ccd7811bd80e2c76d46c25ad673a6d88258',
115572,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'949d9d08a3fdfbf25c440752e7968c3e04b26dcec1c43915c44d5c57db7e9ccf',
113108,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'71a501ab8d65c671d4e77612d9ad234c0f9532f2dd6be71f3b0d7ddacfe42e20',
113432,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'3c87e798191c1614d72520be6938603e84689d9abac78f4cce85af485c9da54c',
114216,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'731eaca0c3133eb4850835cb6b8b168e61509f46aa317b6203d5cbf84a31f89f',
114276,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'08f30094e7713dc3ceb2ad66e4dfd4d30b682a9937f3f89d29e2f374adc47d6c',
114152,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'fbd436965241cc2373bfb3ce105e7fa3e32a03969551aeef5a953cb84425e9ef',
114252,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'81c0d961ae02bc641ec896f3a733bd3656758c7947f9df969446aebe126873f2',
114036,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'Rubik',
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,
);
}