robotoSerif static method
TextStyle
robotoSerif({
- 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 Serif font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle robotoSerif({
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(
'd9b2e6825ece9a2eaf42668410a21507a47dff67ef6b906ed04f7e0d6b8df9aa',
151304,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'8652cd6d8bc90ef6602c552857729136136637ba9b473eea0e8f506798c299bd',
151464,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'0df8c02002d3c7072b2f0146511c1dc26cf9f3111f390807afa8dbda7603ca27',
151444,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'41ab8d17070682ffafc668164589262b0f4ebb7f5725d8ff3ac6048748b3ea2f',
151460,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'25af510b4042b91069923e2e69e8b042810aadccc4f979883f0784a188e9a3d2',
151744,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'9f2738221e33f570082588fb15ada72caf327a1aadb90fb6393df2f4f6edeb23',
151796,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'151bfcb5d7ddf4fff862cb21804d045eb3690cf5770607e1842ff8fe5e019391',
151752,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'b9939771497b7f571013314faf4ad22d29c257126403e99d15ae75cbd75204ba',
151864,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'403c887c79f2722794b1f1ad6e6df14694e1f074548f05472df51ba59db1ba2d',
151812,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w100,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'40ebc32dd13e8846bca45eaf6af746ef8b356c75793eeb1524848d8924103c1a',
173096,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'560bf98b6bac64975f2543d1f1d1e9535e98797678e285a4fbba9a61eb88a9b4',
174132,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'ca47d039f8d511ce812cd2032b9ec2f7fc3499dca0365f0dfd57c043c2bde954',
174088,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'5d705d42c52cb0f761523bf661e92e599d82e6563611124a90b781b4ae3415fa',
174004,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'46cce91d7ebbda373561c745667367a408af3ed9b1b47d817a2f22e077c5f971',
174896,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'ac8946fbe91693f108888042ca2a32d8c71094cf474a4de3545668b1dfb5718a',
174996,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'3cb4279084e678c8439681cc8b9f5914607f384775c4b2d72ed218734cff68a0',
174904,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'be8da9681ec0cd601d4a0bea972b3471dc82bad5a66d0c4746401ebecaa36614',
175108,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'119667a07610524042dd8043262374135f4c05b8f2debac00ba7e05c6eeb6dc9',
173148,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'RobotoSerif',
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,
);
}