How to properly center an icon in ListItem?
Column {
ListItem(
icon = {
Icon(
imageVector = Icons.Outlined.Delete,
contentDescription = null
)
},
secondaryText = { Text("secondaryText") },
text = { Text("text") }
)
Divider()
}
gives this result
ListItem implementation uses explicit Box(contentAlignment = Alignment.TopStart) to place the icon. Mmm...why?
I can, of course, use paddings or create a custom ListItem, but there must be a standard solution.


