Anyone mind running this on Android Studio? (I'm using Compose Desktop and don't have Android setup)
Copy code
val text = buildAnnotatedString {
appendInlineContent("image")
append(" is a person.")
}
val person = InlineTextContent(
placeholder = Placeholder(1.em, 1.em, PlaceholderVerticalAlign.Center),
children = {
Image(Icons.Filled.Person)
}
)
Text(text, inlineContent = mapOf("image" to person))
I think
InlineTextContext
alignment is broken and want to see if it's desktop only.