The style of the Text.
Attribute | Description | Type |
---|---|---|
color | The color of the text. | integer |
decoration | Allows you to underline, overline or strike out the text. | string ("lineThrough", "overline", "underline", "none") |
decorationColor | The color of the decoration. | integer |
decorationStyle | The style in which to draw a text decoration. | string ("dashed", "dotted", "double", "solid", "wavy") |
decorationThickness | The thickness of the decoration. | number (1) |
fontFamily | The font family of the text. | string |
fontFamilyFallback | The list of font families to use if the first font family could not be found. | string[] |
fontSize | The size of the text. | number (1) |
fontStyle | The style of the text. | string ("italic", "normal") |
fontWeight | The weight of the text. | string ("bold", "normal", "w100", "w200", "w300", "w400", "w500", "w600", "w700", "w800", "w900") |
height | The height of this text. | number (1) |
letterSpacing | The amount of space to add between each letter. | number (1) |
overflow | How visual text overflow should be handled. | string ("clip", "ellipsis", "fade", "visible") |
shadows | A list of Shadows that will be painted underneath the text. | BoxShadow[] |
textBaseline | The common baseline that should be aligned between this text and its parent text. | string ("alphabetic", "ideographic") |
wordSpacing | The amount of space to add at each sequence of white-space. | number (1) |