<How to center CustomItem in LazyRow vertically so...
# stackoverflow
u
How to center CustomItem in LazyRow vertically so that each item is in the center of The LazyRow? I tried using a ContraintLayout to center it vertically as shown below. Nothing happens after I run the app, it stays in the same position. However, I used this same code snippet in my button and it seems to center it along side LazyRow. Note: I am trying to accomplish this without modifying padding Logic I am trying to use to center vertically (NOT WORKING) Box( modifier = Modifier .padding(top = padding, bottom = padding) .constrainAs(item) {centerVerticallyTo(lazyRow)}, //...