Brian G
10/21/2021, 2:29 PMjava.lang.IllegalStateException: Nesting scrollable in the same direction layouts like LazyColumn and Column(Modifier.verticalScroll()) is not allowed.
when the compose docs clearly state Automatic nested scrolling: Simple nested scrolling requires no action on your part. Gestures that initiate a scrolling action are propagated from children to parents automatically, such that when the child can't scroll any further, the gesture is handled by its parent element
The docs then go on to give a sample of nesting one vertical scrolling box inside another vertically scrolling box.Ian Lake
10/21/2021, 3:28 PMModifier.verticalScroll()
surrounding the LazyColumn
? That kind of setup doesn't really make any sense given that verticalScroll
is effectively makes that element an infinite height...meaning every element in a LazyColumn
would be loaded at once (as they're all within the bounds of the available height...), thus defeating the whole purpose of LazyColumn
Brian G
10/22/2021, 5:37 PMBrian G
10/22/2021, 5:38 PMBrian G
10/22/2021, 5:40 PM