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(
'9c71a665e0a2e7f258d67170c1a0fd6b9f0fffd812672a8f9e4a4fdb72978f54',
114468,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'c07d3baa06bab48792c91759b27518f6ce25935caf229e36fd9771e6b8301cde',
115200,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'0a531e9370331425c6b1275d46ac47133cb8a1d5e071b4d8c0231f126c04dc76',
115136,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'fbdd40d0cd7e8ce366c270a92ba5ed2014deed8742e7d67146a9305166c4f8f4',
115124,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'42095c24483569a412ba599b1b68a75ce8fd9cf1e558e34bf5747e648f241f15',
115048,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'051bfc3d04111a5eab848f3914911e8d15de0432be03ee54658e20a09d605010',
114912,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'd1e49376add5588413d20d35ef3e9a484078eab0d9353e13adc3b81896922e8d',
114668,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'e90e97b66e811df3962be3e3cc057edd5a449db6dc902a46fabf117c22ac3d13',
113172,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'0ba70b831db78977c666fabd0a9c43da009d7d5f96566cd0694d1a694aded617',
113492,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'db129d56d2a1587cd75975e2b38c512111ab6e0346cd8436a25a7ae26bed3cb5',
113600,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'7b0cea1d87525a31f978a04c545fdeb1ae5c46b22745c200d418a7dda1c2bbeb',
113640,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'8962de86e02db0ae9c801b0797d619a4651362efe5a5254e9a6375a82ff565cb',
113516,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'8a64cb8a52901b1ba6755d6825c2635f562fe0c4ffbca390452205153e306919',
113612,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'16754d565eaf16d5264535ac12e29e2e5aeca61338aae3a374543cc3d95f6986',
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,
);
}