Hi, I'm working a Chat UI (a list of messages), where each message might contain markdown formatting.
For the row item I simply use
@Composable
un AgentMarkdownItemRow(
modifier: Modifier = Modifier,
item: AgentMarkdownItem,
onLongPress: (Item) -> Unit
) {
AgentItemRow(
modifier = modifier,
timestamp = item.timestamp,
onLongPress = {
onLongPress(item)
}
) {
RichTextThemeProvider( <------------
textStyleProvider = { MaterialTheme.typography.subheadline }
) {
BasicRichText {
Markdown(item.value)
}
}
}
}
but then the LazyColumn then behaves weirdly, when scrolling items appear to change height, also when flinging the list won't go all the way to the end (but will if I scroll) etc.
Is this a known issue?
Hi, I'm working a Chat UI (a list of messages), where each message might contain markdown formatting.
For the row item I simply use
but then the
LazyColumnthen behaves weirdly, when scrolling items appear to change height, also when flinging the list won't go all the way to the end (but will if I scroll) etc.Is this a known issue?