https://kotlinlang.org logo
#compose
Title
# compose
k

Kev Thompson

06/13/2023, 9:29 AM
Hi All. We have a problem we need to solve in our app and I was wondering if any of you had already come across a decent fix. Example: We have a lazyRow ( we are not locked in with LazyRow if we need to change ) with 10 cards in it. the contents of the cards can vary which changes the cards height, but, the design dictates that all cards must be the same height. so we need to expand all the cards height out to the tallest card. but the tallest card maybe the last card in the list so wont have been rendered until its needed. Any ideas?
o

orangy

06/13/2023, 9:36 AM
I think for 10 cards you can just use non-lazy
Row
and intrinsic max height
k

Kev Thompson

06/13/2023, 9:43 AM
Thanks, will take a look into that now 🙂
c

Colton Idle

06/13/2023, 12:36 PM
Yep. I needed to do that for a project. You can't use a lazy*anything. It was a bit more frustrating for us because we had to have pager like snapping, so we had to build that into a regular Row