Label
Properties
AutoShrink
How far the text may shrink to fit its width, 0.5 meaning half size, or 0 to truncate instead.
Type: double
Bold
Shorthand for a bold FontWeight.
FontDesign
The font's design: system, rounded, serif or monospaced.
Type: FontDesign
FontSize
Base font size in points, scaled by Dynamic Type and overriding TextStyle.
NaN falls back to the text style, or 17 points without one.
FontWeight
The font's weight.
Type: Bindable<FontWeight>
LetterSpacing
Extra points between characters (negative tightens).
Type: double
LineSpacing
Extra points between lines.
Type: double
MaxFontSize
The largest point size Dynamic Type may scale the text to, or NaN to follow the accessibility sizes all the way up.
Set this and
MinFontSizeto the same value for fixed-size text.
Type: double
MaxLines
Maximum number of lines, or 0 for unlimited (wraps freely).
MinFontSize
The smallest point size Dynamic Type may produce, or NaN for no lower bound.
Type: double
Spans
Styled runs composing the text, overriding Text when set.
Each run styles itself over the label's own font and color.
Type: BindableList<Span>
Strikethrough
Strikes the text through.
Text
The text to display.
TextAlignment
Horizontal alignment of the text.
Type: Bindable<TextAlignment>
TextColor
Text color, or null for the system label color.
TextStyle
The step of the native type hierarchy the text follows, or null to size it by FontSize.
Type: TextStyle?
Truncation
How the text is shortened when it does not fit.
Type: Truncation
Underline
Underlines the text.