rubik static method
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<
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(
'67a2e3942b43312e18e082a446cf2ad53b8b5f57bd57fc77b5ac9be0db09ed94',
114468,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'6e7cd5eb182ee7a7edaf5610e6ed068e022816fd818b264055b1896772988d3e',
115200,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'12a3e4c0db93dde8032e4984af155a7840ab3f7aedde42283c69386af3c298f1',
115136,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'6775712ac212b666b026a25d9f360ca3b088e4c3abae0dc78c1d634cfa6e6a13',
115124,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'e84327f135c43262ebf3c68e506c952aa439572fa2c1e0aeaab07c64f07a35be',
115048,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'd26b3c2ab4158834372c86d1d8e8a930cb789ebaf05fbc6f0e2e0a3f788ff1df',
114912,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'1d80d7258df0884b1fa66f824da6619cdb2635ae5a6d5330818efb987b59de3b',
114668,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'8124e02f4938672f6e6124d6ac7628867daadf1a20c044a0bb061eec60d31b98',
113172,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'd089b5e83f1f3695ad59a56c27aa1355e6e9ec0aa63bf6f8a8b4f7a7fa018c05',
113492,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'9aedd56e2ddfbdec0737c829ee7dba93a9ccc60a6c8b0485d313d6e9d683da8a',
113600,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'0592fd3e06f468a12b4c6f896b0e01a6152b3cf7875a3852e8aed949b60bd11a',
113640,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'07f4e6b869ec295f1bf3125cc6565daa40a5a4ab3e83763a4c94dfd68e81413c',
113516,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'6f5f1dd06eeb2e10ce1abcaebbe6c5e118d4608128eb1d047a985cc02b991391',
113612,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'bf7736ae8f30d851ec13c2a2037da8de5ce311a99cd979645f089c97ad8b1a6a',
113372,
),
};
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,
);
}