textStyle property

Style? textStyle
final

Style for normal body/paragraph text.

When set, this is applied to paragraph text and list items so that body content has an explicit foreground color rather than relying on the terminal's default. This is particularly important when the app paints its own background (e.g., a dark theme on a light terminal).

Typically pass a Style with a foreground color matching your theme's text-on-background color:

MarkdownText(
  data: '...',
  textStyle: Style().foreground(theme.onBackground),
)

Implementation

final Style? textStyle;