I have a Column(modifier = Modifier.verticalScroll(mainScrollState))
and I want to use LazyColumn
inside Column
WITHOUT specifying height of LazyColumn
explicitly.
Now it gives me java.lang.IllegalStateException: Vertically scrollable component was measured with an infinity maximum height constraints, which is disallowed.
I tried using NestedScrollConnection
but it didn't give me right solution. Any workarounds?
My whole composable looks like:
Scaffold() {
Column() {
Column() {
LazyColumn { ... }
}
Column() { ... }
}
}