Skip to content

Odd behavior when in LazyColumn #170

@ursusursus

Description

@ursusursus

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions