AnnotatedString

Function

Common
fun AnnotatedString(
    text: String,
    spanStyle: SpanStyle,
    paragraphStyle: ParagraphStyle? = null,
): AnnotatedString

Create an AnnotatedString with a spanStyle that will apply to the whole text.

Parameters

textthe text to be styled
spanStyleSpanStyle to be applied to whole text
paragraphStyleParagraphStyle to be applied to whole text
Common
fun AnnotatedString(text: String, paragraphStyle: ParagraphStyle): AnnotatedString

Create an AnnotatedString with a paragraphStyle that will apply to the whole text.

Parameters

textthe text to be styled
paragraphStyleParagraphStyle to be applied to whole text