Guyaume Tremblay
11/10/2025, 5:53 PMGuyaume Tremblay
11/10/2025, 6:20 PMGuyaume Tremblay
11/17/2025, 3:52 PMGuyaume Tremblay
11/17/2025, 3:55 PMLazyColumn(
modifier = Modifier
.fillMaxSize()
.semantics {
collectionInfo = CollectionInfo(
rowCount = state.items.size,
columnCount = 1,
)
},
state = listState,
) {
itemsIndexed(state.items, key = { _, item -> item.key }) { index, item ->
Row(
modifier = Modifier
.fillMaxWidth()
.clickable(
indication = ripple(color = MaterialTheme.colorScheme.primary),
interactionSource = remember { MutableInteractionSource() },
) {
item.onTap.invoke()
}
.padding(all = 16.dp)
.clearAndSetSemantics { (content description, etc) },
verticalAlignment = Alignment.CenterVertically,
) { text, image }
}
}