Skip to main content
.fontWeight(weight: FontWeight): Component;

Parameters

weight
FontWeight
The font weight. Can be "ultraLight", "thin", "light", "regular", "medium", "semibold", "bold", "heavy", or "black".

Support

Usage

Light text

Text("Light text")
    .fontWeight("light")

Bold text

Text("Bold text")
    .fontWeight("bold")

Heavy text

Text("Heavy text")
    .fontWeight("heavy")