0

In jetpack compose I have a Lazy column, and for each item I draw a row. Each row consists of two columns. First column is about twice as the other one in height. Now, how is the best way to tell the other column to fill all the row height - so to be equal in height with first column? This is my example code:

LazyColumn() {
   items(documents) {
      Row {
         Column {
            Text("One")
            Text("Two")
            Text("Three")
         }
         
         Column(verticalArrangement = Arrangement.SpaceAround) {
            Text("One")
         }
      }
   }   
}

Modifier.FillMaxHeight() doesn't work. Is far as I understand that's because of using LazyColumn.

Adam Wiernicki
  • 839
  • 6
  • 9

2 Answers2

0
verticalArrangement = Arrangement.spacedBy(12.dp)

you can use this property to apply equal space.

Hanif Shaikh
  • 500
  • 1
  • 10
0

I've finally found it. The answer is using modifier = Modifier.height(IntrinsicSize.Min) in the Row component.

As it's explained here

Adam Wiernicki
  • 839
  • 6
  • 9