I'm trying to create LazyColumn of Images. I want ...
# compose
r
I'm trying to create LazyColumn of Images. I want it to fill width and take a height that preserves its aspect ratio. Everything I've tried has zero height, no visible images. Eg:
Copy code
Image(
    painter = ..., contentDescription = null,
    contentScale = ContentScale.Fit, // ???
    modifier = Modifier.fillMaxWidth() 
)
r
Thanks. Apparently I can calculate it from
painter.intrinsicSize
. That is undefined at first, so need a default, but it shows up as the images load.