Bradleycorn
05/17/2021, 8:27 PMRow(modifier = Modifier
.fillMaxWidth()
.wrapContentHeight()) {
Surface() {
Text(...)
}
Column {
Text(...)
Text(...)
Text(...)
}
}
How do I get the Surface
to be the same height as the Column
?Luke
05/17/2021, 8:30 PM.weight(1f)
modifier to both of themColton Idle
05/17/2021, 8:34 PMLuke
05/17/2021, 8:35 PMBradleycorn
05/17/2021, 8:39 PM.weight
is no good. I’ve actually already got a weight
on the column to get it to fill the remaining horizontal space.Halil Ozercan
05/17/2021, 8:48 PMLuke
05/17/2021, 8:53 PMFrancesc
05/17/2021, 11:25 PMIntrinsicSize
Row(
modifier = Modifier
.fillMaxWidth()
.height(IntrinsicSize.Min)
) {
Surface(modifier = Modifier.fillMaxHeight()) {
Text(text = "FooBar")
}
Column {
Text(text = "FooBar1")
Text(text = "FooBar2")
Text(text = "FooBar3")
}
}
Bradleycorn
05/18/2021, 12:32 AMIntrinsicSize.Min
is exactly what I was looking for! Thanks!