文本 Widgets

Display and style text.

See more widgets in the Flutter widget catalog.

  • Abc

    Text

    A run of text with a single style.

    Documentation

  • 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.

    Documentation

  • DefaultTextStyle

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

    Documentation

See more widgets in the Flutter widget catalog.