petrona static method
TextStyle
petrona({
- 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 Petrona font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle petrona({
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(
'4eb59da3429ebaaf61104e0655f24c00245eeaab642f09d2c91122d3553d434d',
70620,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'7dc6499caeae522ca2eb19870db76abd47337517bc9cafb487e4467e5ab3c00d',
71088,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'06a7147eae40fc588dee113584626f0caab7756c516c14a2d67b5db3d9399127',
71016,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'e42e42b65352516343af971c852c07eb377e0f33d9badc86da23397f638d2b8c',
70956,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'7cee628017c07edaafb9ab7e3aa1540820770d9fd4015987b2e9c0f5fcb765da',
71012,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'f8b23fc216981968b9e34664e550c40bcc5b82a06e6860e411a158a5d25d4620',
71036,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'd29ab364a1e79662e24616ac248456e49cb3e80456bf6ceb667c18c0b5840526',
71028,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'e69beb03511d1d0b3119c30b1afb7848b07a9c123c3faf6445ace37d8af111d6',
71056,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'2902c74ddb1cace22c484341b98947211b81e219ce025ed72632682f51c30f57',
70908,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w100,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'303e9583b0dab31e0cd14c429005916f49138a3c99e8f61b8dd79b0a4d35aef9',
75100,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'0787f1096daaebf98ecb37124dd0cedff87f4a4bf2fc54ee6c38ffac5d56d1f0',
75996,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'a07299fd1467137634dbcfe5c645b058afc3902892c93d871084dd7c9dcdd243',
76020,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'764253dd657777c256fccf5a2d85ce2ef2c2fe9fbf9d12f665c44c2adbb82ee6',
76016,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'7e4342069e8a1bf987feb5cdfdc17f7ec595fcb54c40d62f6a7c3f6baacfbff4',
76100,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'f39b14ab3713129347731b1c3af1ecc43e423774ae418d5fcf89d8f65a0ad1d3',
76068,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'b60d88251961e0393c525634866415b52215e77fa33c3ffba1ef4a7641053cba',
76008,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'3d30b5f50df062456401044528c35e9bfb8640c1a3c1de62c572644117ca80a3',
76068,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'feeaf893c9d78cced1479119b1b166955b4fde000af268d8a63529287a110fab',
75876,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'Petrona',
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,
);
}