AnnotatedStringBuilderLambdaSample
fun AnnotatedStringBuilderLambdaSample() {
// create an AnnotatedString using the lambda builder
buildAnnotatedString {
// append "Hello" with red text color
withStyle(SpanStyle(color = Color.Red)) { append("Hello") }
append(" ")
// append "Hello" with blue text color
withStyle(SpanStyle(color = Color.Blue)) { append("World!") }
}
}