Text widgets

Display and style text.

See more widgets in the widget catalog.

DefaultTextStyle

The text style to apply to descendant Text widgets without explicit style.

RichText

The RichText widget displays text that uses multiple different styles. The text to display is described using a tree of TextSpan objects, each of which has an associated style that is used for that subtree. The text might break across multiple lines or might all be displayed on the same line depending on the layout constraints.

Abc
Text

A run of text with a single style.

See more widgets in the widget catalog.