components/typography/ouds_annotated_text library

Classes

OudsAnnotatedText
An immutable, annotated text value produced by buildOudsAnnotatedText, used to color part of a typography widget via its .rich constructor (e.g. OudsHeadingText.rich).
OudsAnnotatedTextBuilder
A builder used to compose an OudsAnnotatedText for any typography .rich constructor (OudsDisplayText.rich, OudsHeadingText.rich, OudsBodyText.rich, OudsLabelText.rich), letting you color only part of the text.
OudsAnnotatedTextSegment
A single run of text within an OudsAnnotatedText, optionally colored via colorResolver.

Enums

OudsTextWeight
The emphasis level shared by OudsBodyText and OudsLabelText.

Functions

buildOudsAnnotatedText(void block(OudsAnnotatedTextBuilder builder)) → OudsAnnotatedText
Builds annotated text for use with a typography .rich constructor.