Colton Idle
01/11/2022, 6:28 PMfun SomeContainer(
content: List<@Composable () -> Unit>)
Row(
Modifier.horizontalScroll(rememberScrollState()).height(IntrinsicSize.Min),
) {
content.forEach {
it(Modifier.fillMaxHeight()) <----- Anyway to get something like this
}
}
Wrapping it in a box for example doesn't help me, because although the box will get the modifier, the composable inside the box will not draw to fill max height.Chris Johnson
01/11/2022, 7:08 PMList<@Composable (Modifier) -> Unit>
apart from that I'm not sure if the modifier just isn't working or you were having a problem getting the modifier to your composableZach Klippenstein (he/him) [MOD]
01/11/2022, 7:13 PMpropagateMinConstraints=true
in the Box
?Zach Klippenstein (he/him) [MOD]
01/11/2022, 7:14 PMpropagateMinConstraints
should fix it.Chris Johnson
01/11/2022, 7:18 PMColton Idle
01/12/2022, 1:32 AMChris Sinco [G]
01/12/2022, 6:53 AMalthough the box will get the modifier, the composable inside the box will not draw to fill max height.At least for this, I think what could help is to make sure you can pass modifiers down to the first item container in the Row, then to the content composable itself in that container. And then also “hoist” the content composable declaration to the SomeContainer level?
Colton Idle
01/12/2022, 6:22 PMZach Klippenstein (he/him) [MOD]
01/12/2022, 10:28 PMpropagateMinConstraints
thing not work? From what you’ve described that sounds like the exact issue that parameter is for.Colton Idle
01/12/2022, 11:12 PMColton Idle
01/13/2022, 4:33 AMZach Klippenstein (he/him) [MOD]
01/13/2022, 5:05 PMColton Idle
01/13/2022, 6:31 PM