urbanist 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 Urbanist font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle urbanist({
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(
'7ccb27b1e48bec9cc96e010ff3dc49563a630f5e0b9700ba8d259afa2d67810a',
40912,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'bb490c6d47b78fb609e20c3776b80e944b1891bb2bcf91a29d09b2049245e9a1',
41136,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'07c4958279c71bce17c7edf7729c10f287732103c5aef6f144ded71342a364c4',
41104,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'd601305cb24b44701742e5acace20662ff08d7eb304d4ca7fa4593e2739ef02e',
41036,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'8cbd58acc622a6a9d12ca7faae7614106fc0bf00a85dc3aeb8f8e71c6f6a77aa',
41092,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'c319914eb7a2f989f368f7863e7e54b20a375e384fa42b38587430d4cc2cefd4',
41072,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'fdb61ae6c93fc6832494bbc9d221668cb2b6ed13acd5b417ae2e2aea8caecb73',
40932,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'23eea7bd5577051e6ceb13746c9ab8c8a8eea1e0a1b6011ce4a8728fca12e7b8',
41220,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'2c409f6b7f2eaf9920efeab4fbadbf11aa2230d1f6b51fb3fc731c23af2a2e83',
41088,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w100,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'f80ede6ee8db2e424f02aea8c8d9dbb7e119dbfc2c50659fd9e5f1c0f0ccc72c',
41880,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'a81bbbc4513e8c11e7da9b2e24a2cd69295f42a76f84e67588e52436f0d0e77e',
42144,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'31f41760f9e7e3c03d3881fad2c4a58fd253a6990b8b056280038863c442c367',
42072,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'18332ab7dd48e992dff70738d3a751b5fc13e1eb8b502105102d406828d28e4e',
41996,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'785502a3a33b26a51420b2265d1bd3109413f0f43f368443287697128c99c185',
42100,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'14b2f34491271642644f2db1b75b02c04353ce3b3313123e74af47c43fcecfe6',
42108,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'd6be3b4e6d8fba80e233667d8b6c37e4723962b41d1ec13dbd160fc40d852ce1',
41888,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'6fb7ddf11c985d579bae9ead1c60304f687691d36f805a3db24c5a7963953e2c',
42212,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'ed99a987ac54e910c9c488aee12e0a082f6aee946f4df288632203522c227d29',
42068,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'Urbanist',
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,
);
}