dosis static 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 Dosis font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle dosis({
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.w200,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'1a2cb17cabd7cfc2009496afc21bc96331b93a5fc4d8b12de460222b6df4c2db',
69040,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'26fffd331a655af19126888f6c2f4f57f1aab851cb9b1809d2ab6385851ac9a3',
69196,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'9da858c28792a40846fb95ef228d39dc35862f3edfb2bd0f7cb2d772760d0c68',
69296,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'20511c732f7539b0f5adb9536636b25e172858e79473b4df10cb60468e0d6a45',
69212,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'ee096e8f9bceff30e737fe8084a45267ba175ec57719abb6575be7adc69b42cf',
69236,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'db417531455190f73d7e9324544442fdf7e53393dcbcb378a3226d9e6cc7a2e0',
69140,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'c0c69f9044b39ff7a2a138ac059f9d64cf0efd8fe135977efeb487c7875d1c95',
69132,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'Dosis',
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,
);
}