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
Explicit font size in points, 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.
Type: double
MaxLines
Maximum number of lines, or 0 for unlimited (wraps freely).
Spans
Styled runs composing the text, overriding Text when set.
Each run styles itself over the label's own font and color.
Type: IReadOnlyList<Span>?
Strikethrough
Strikes the text through.
Type: bool
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.
Type: bool