[Issue] java.lang.IllegalStateException: Vertically scrollable component was measured with an infinity maximum height constraints, which is disallowed.

노준혁·2023년 3월 30일
0

https://issuetracker.google.com/issues/240307882

Im getting the following error

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.

When i moved column istead of a lazycolum - it fixes the issue.

I want to use  lazy column inside a scrollview. How to achieve it - with a wrap content height

profile
https://github.com/nohjunh

0개의 댓글