Brian Donovan
01/05/2022, 5:40 PMjava.lang.IllegalStateException: Vertically scrollable component was measured with an infinity maximum height constraints, which is disallowed. One of the common reasons is nesting layouts like LazyColumn and Column(Modifier.verticalScroll()). If you want to add a header before the list of items please add a header as a separate item() before the main items() inside the LazyColumn scope. There are could be other reasons for this to happen: your ComposeView was added into a LinearLayout with some weight, you applied Modifier.wrapContentSize(unbounded = true) or wrote a custom layout. Please try to remove the source of infinite constraints in the hierarchy above the scrolling container.
how to put a LazyColumn inside Column(Modifier.verticalScroll())Alex
01/05/2022, 6:08 PMBrian Donovan
01/05/2022, 6:09 PMAlex
01/05/2022, 6:13 PMAlbert Chang
01/05/2022, 6:20 PMBrian Donovan
01/05/2022, 6:45 PMBrian Donovan
01/05/2022, 6:46 PMAfzal Najam
01/05/2022, 7:04 PMitem()
blockBrian Donovan
01/05/2022, 7:16 PMAfzal Najam
01/05/2022, 7:18 PMdo I need to add a background or somethingYup, that would “fix” it.
Brian Donovan
01/05/2022, 7:23 PMBrian Donovan
01/05/2022, 7:23 PMAfzal Najam
01/05/2022, 7:23 PMBrian Donovan
01/05/2022, 7:30 PMAfzal Najam
01/05/2022, 7:32 PMLazyColumn
in its content.Brian Donovan
01/05/2022, 7:36 PMBrian Donovan
01/05/2022, 8:18 PMAfzal Najam
01/05/2022, 8:19 PMcontentPadding
argument on LazyColumn
would solve that.Colton Idle
01/06/2022, 3:24 AMColton Idle
01/06/2022, 3:24 AM