Pablo Reyes
11/16/2021, 4:38 PMJohn Nichol
11/16/2021, 4:47 PMverticalAlignment = Alignment.CenterVertically,
modifier = Modifier.fillMaxSize()
) { ... }
Pablo Reyes
11/16/2021, 4:52 PMListItem(
Modifier.clickable(onClick = onClick),
icon = {
.... // Here are the elements I want to center
}
}
If I use a Column/Row inside the Icon it does nothing 😕.John Nichol
11/16/2021, 4:54 PMJohn Nichol
11/16/2021, 4:55 PMJohn Nichol
11/16/2021, 4:55 PMPablo Reyes
11/16/2021, 4:55 PMChris Sinco [G]
11/17/2021, 5:25 AMListItem
component is an experimental Material component so it definitely has some quirks and probably bugs. One thing to note though is that it's designed to be very close to the Material spec of list item templates (see the demo on this guideline page), so deviating from that may cause unforeseen issues, e.g. putting text in the Icon slot.Chris Sinco [G]
11/17/2021, 5:27 AM