Computer scienceMobileJetpack ComposeComposablesMaterial

Text Composable

Annotated String

Report a typo

Arrange the code lines of the Text composable in the correct order to get the following result:

Annotated String example

Don't forget about proper indents.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                }
              
                withStyle(style = SpanStyle(fontStyle = FontStyle.Italic)) {
              
                }
              
                Text(
              
                text = buildAnnotatedString {
              
                }
              
                append("Ice ")
              
                append("Fire")
              
                withStyle(style = SpanStyle(fontWeight = FontWeight.Bold)) {
              
                )
              
                append("and ")
              
___

Create a free account to access the full topic