https://kotlinlang.org logo
Title
j

Jan Skrasek

07/01/2022, 8:18 AM
I'm looking to for weight() + with minHeight to force the column to scroll. Here is a question with solution but I'm not much satisfied with BoxWithConstraints solution. Is there any other option?
Column(modifier = Modifier.verticalScroll(rememberScrollState()).fillMaxSize) {
    Box(modifier = Modifier.weight(1f).sizeIn(minHeight = 160.dp))
    Box(modifier = Modifier.height(600.dp))
}
I guess custom layout is also a way to go here.
Ok, I have no idea how to solve it with custom layout as the maxHeight in constraints is infinite, because the scrollable content. minHeight is zero.