Jetpack Compose: Equal width columns of dynamic content

Viewed 153

I have some dynamic content and I need to render it as a LazyRow of several Columns. Each Column can have Texts of various lengths.

Ideally, I would like every Column to be the size of the largest Column.

How can I ensure that every Column is the same width?

I think I need IntrinsicSize here but I'm not sure how to apply it in my case:

LazyRow {
    items(items = steps) {
        Column { 
            // ... dynamic content, including Texts of varying sizes and lengths
            // How can I ensure that EVERY column is the SAME width?
        }
    }
}

0 Answers
Related