`ListItem` icon is wrapped in a `Box` with `Conten...
# compose
m
ListItem
icon is wrapped in a
Box
with
ContentGravity.TopStart
. I think that a Center Alignment would be more appropriate
a
@Mihai Popa
a
It seems like material specs suggest center alignment only for a Single-line item https://material.io/components/lists#specs
m
According to the spec, the icon should be at 16dp padding from the top. This means that if your icon is 40x40 the icon will be centered, if it is smaller it will not. It seems that your screenshot conforms to the spec 🙂 If you really want to center the image, feel free to wrap your icon in a 40x40 Box with center gravity. Let me know if this helps.
m
Thanks and sorry for making you waste time
m
No worries at all, let us know if you have more questions 🙂
🙂 1