Brian Donovan01/05/2022, 5:40 PM
how to put a LazyColumn inside Column(Modifier.verticalScroll())
java.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.
Alex01/05/2022, 6:08 PM
Brian Donovan01/05/2022, 6:09 PM
Alex01/05/2022, 6:13 PM
Albert Chang01/05/2022, 6:20 PM
Brian Donovan01/05/2022, 6:45 PM
Afzal Najam01/05/2022, 7:04 PM
Brian Donovan01/05/2022, 7:16 PM
Afzal Najam01/05/2022, 7:18 PM
do I need to add a background or somethingYup, that would “fix” it.
Brian Donovan01/05/2022, 7:23 PM
Afzal Najam01/05/2022, 7:23 PM
Brian Donovan01/05/2022, 7:30 PM
Afzal Najam01/05/2022, 7:32 PM
in its content.
Brian Donovan01/05/2022, 7:36 PM
Afzal Najam01/05/2022, 8:19 PM
would solve that.
Colton Idle01/06/2022, 3:24 AM