fontWeight property

FontWeight? fontWeight
final

The thickness of the glyphs used to draw the text.

Fonts are typically weighted on a 9-point scale, which, for historical reasons, uses the names 100 to 900. In Flutter, these are named w100 to w900 and have the following conventional meanings:

Defaults to nearest FontWeight's FontWeight.bold.

  • w100: Thin, the thinnest font weight.

  • w200: Extra light.

  • w400: Normal. The constant FontWeight.normal is an alias for this value.

  • w700: Bold. The constant FontWeight.bold is an alias for this value.

  • w900: Black, the thickest font weight.

For example, the font named "Roboto Medium" is typically exposed as a font with the name "Roboto" and the weight FontWeight.w500.

Some modern fonts allow the weight to be adjusted in arbitrary increments. See FontVariation.weight for details.

Implementation

final FontWeight? fontWeight;