TextStyle
TextStyle
properties
A style describing how to format and paint text.
baseline
The common baseline that should be aligned between this text span and its parent text span, or, for the root text spans, with the line box.
Value is of type TextBaseline
.
bgcolor
Text background color.
color
Text foreground color.
decoration
The decorations to paint near the text (e.g., an underline).
Value is of type TextDecoration
.
decoration_color
The color in which to paint the text decorations.
decoration_style
The style in which to paint the text decorations (e.g., dashed).
Value is of type TextDecorationStyle
and defaults
to TextDecorationStyle.SOLID
.
decoration_thickness
The thickness of the decoration stroke as a multiplier of the thickness defined by the font.
font_family
See Text.font_family
.
foreground
The paint drawn as a foreground for the text.
Value is of type Paint
.
height
The height of this text span, as a multiple of the font size.
See detailed explanation here.
italic
True
to use italic typeface.
letter_spacing
The amount of space (in logical pixels) to add between each letter. A negative value can be used to bring the letters closer.
overflow
How visual text overflow should be handled.
Value is of type TextOverflow
.
shadow
The value of this property is a single instance or a list of BoxShadow
class instances.
size
The size of glyphs (in logical pixels) to use when painting the text.
Defaults to 14
.
weight
Value is of type FontWeight
and defaults to FontWeight.NORMAL
.
word_spacing
The amount of space (in logical pixels) to add at each sequence of white-space (i.e. between each word). A negative value can be used to bring the words closer.