79259180

Date: 2024-12-06 19:38:56
Score: 0.5
Natty:
Report link

Maybe you want something like this? Set the scroll state to the last element, instead of using reverseLayout

val items = List(10) { it }
val state = rememberLazyListState()

LaunchedEffect(Unit) {
    state.scrollToItem(items.lastIndex)
}

LazyColumn(
    state = state
) {
    stickyHeader {
        Text("End to End Enabled for this chat")
    }
    items(items) {
        ListItem(
            headlineContent = {
                Text("Item $it")
            }
        )
    }
}
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: xephosbot