robotoMono static method
TextStyle
robotoMono({
- 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 Roboto Mono font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle robotoMono({
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(
'953c9727ab38bd2cabab0feec868f63ad84f520a1e3cc9efdf51c03bf62460c5',
79960,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'7d2f69692ef3470c74d9db680512ebb4845517251b2615d80aaf5951c8a645a7',
79876,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'7e71c821325e0c3b0372391b40c48c33ad627eba6b0e85adc7b4bb3f37267c0f',
79680,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'52812baeb7e668d5a8beb4d89f9a7cafce085cdf1ea7c3dc04b5d1956018e207',
78972,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'84235995c3641be92d3bc5e16af68b77853f7c66ace1718af7f922da32478299',
78924,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'85d418457ae2a12dcdb76a6d04c9496ad1288d7a33081253728f7ccd0f63bc79',
79164,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'217dbca37f7b9df6dc4d0ddf21fbaeddd786100aa1fb77d106a7cf0915ed000c',
79112,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w100,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'18e99da72f81aa9fab5db4562eb0c6831091e51771eae41f04707f7c45f27a26',
84892,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'4ec991b6a5977e6df833d5e385ac3e31515e6a5a0edf1847b81b0bef71c1a9d6',
85228,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'fa85444acd7b009fa27ac4db6400587e6a6c019d8342524754bf8ed1bc18b5a4',
85560,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'ebf7fca4fe11f337e0a03d5d61b9370d0308c16f66c5fcd3ff5f5343311255eb',
85680,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'6437f644ca089f04c34c912b2e17bd5fb1916ef40372cf13e8b859efd2639fdb',
85732,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'531de90e5e95184fa2671e9a5a1e8f0cec87e48f587ff471b1be0c10976aba11',
85732,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'577e2371415c69f674e9ef6fb0b2531e2c1675b1e68f577eced9b616d99281c0',
85908,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'RobotoMono',
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,
);
}