mPlus1p 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 M PLUS 1p font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle mPlus1p({
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>{
GoogleFontsVariant(
fontWeight: FontWeight.w100,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'0654233f2cc095bd1af48724031070c0b16e3dd46fc5c29bd87070d485b7a366',
1766584,
),
GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'328d60a811d0715a23a96805dda2004f69c4b0a888dc1711c77a2d589650c97f',
1762104,
),
GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'6d33f3ea856c224db5e2d573ab252d85cc66e3d2ec9981d4dded4cb5df17a345',
1753640,
),
GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'45129fd4450f7465b6ad68ee3a7f2579df75712cdedec1690b2f2b8e2a008400',
1753792,
),
GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'42106dfc33cc933616115e3c69191bc75d0675df68106571eedbe23c14b5ad1f',
1761472,
),
GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'27bd65580cfc4564b1dc3ee85e12bdc336861dc586fd838a943bdef4a3bd8730',
1768720,
),
GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'21baffc573a6103dcd6c23b9ad751e3686f142c921212717fa3b4356e01a38bc',
1769116,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'MPLUS1p',
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,
);
}