RichTextScope
class RichTextScope
Receiver of richText { ... }.
Add a span for every contiguous styled run; the renderer wraps them together as one paragraph. Style inheritance follows the same cascade as text: every span starts from the richText block's own defaultSpanStyle (which itself inherits from the enclosing ContainerScope.textStyle) and the per-span configuration block then overrides whichever properties differ.
Properties
Link copied to clipboard
Default style applied to every span unless overridden by the per-span block.
Link copied to clipboard
Override line height; 0.sp picks the spans' own metrics.