Se7eN
09/18/2020, 11:54 AMScrollableColumn not support nested scrolling?
I have a LazyRowFor and a LazyColumnFor inside a ScrollableColumn and it messed up vertical scrolling. Fling scroll doesn't work.
ScrollableColumn {
Text(...)
LazyRowFor(...)
LazyColumnFor(...)
}Yann Badoual
09/18/2020, 11:58 AMLazyColumn {
Text(...)
LazyRowFor(...)
// Additional content
}
?
(I tried using LazyColumn stand-alone, without nested scrolling, and with very simple items, fling wasn't working and it was super laggy)Se7eN
09/18/2020, 12:03 PMLazyColumnFor rn. But I'll try with LazyColumn . Is there a sample for LazyColumn ? Looks like it doesn't take a composable argumentYann Badoual
09/18/2020, 12:10 PMLazyColumnFor and LazyColumn use the same composable under the hood LazyFor .
I'm not sure what are the differences between the two, except that one is wrapping a list of items (LazyColumnFor) while the other has a more similar api with ColumnSe7eN
09/18/2020, 12:15 PMYann Badoual
09/18/2020, 12:15 PMcontent is what you're looking forSe7eN
09/18/2020, 12:15 PMYann Badoual
09/18/2020, 12:17 PMitem callSe7eN
09/18/2020, 12:17 PMYann Badoual
09/18/2020, 12:17 PMLazyColumn {
item {
// I'm a composable
}
}Se7eN
09/18/2020, 12:17 PMYann Badoual
09/18/2020, 12:18 PMitems and itemsIndexedSe7eN
09/18/2020, 12:18 PMYann Badoual
09/18/2020, 12:19 PMSe7eN
09/18/2020, 12:21 PMScrollableColumnAndrey Kulikov
09/18/2020, 12:44 PMLazyColumn dsl instead the fling should work fineSe7eN
09/18/2020, 12:47 PMLazyColumn {
item {
Button(...)
LazyRowFor(...)
LazyColumnFor(...)
}
}
I can make a sample project if you wantYann Badoual
09/18/2020, 12:49 PMSe7eN
09/18/2020, 12:50 PMAndrey Kulikov
09/18/2020, 12:51 PMLazyColumn {
item {
Button(...)
}
item {
LazyRowFor(...)
}
items(yourList) {
... item of the list
}
}Andrey Kulikov
09/18/2020, 12:51 PMSe7eN
09/18/2020, 12:51 PMSe7eN
09/18/2020, 1:02 PMSe7eN
09/18/2020, 1:02 PMLazyColumnFor but that's expected right now I guess?dambakk
09/18/2020, 5:20 PMScrollableColumn with a LazyColumnFor inside and fling didn’t work. Replacing the lazy column with a forEach did the trick, fling now works perfectly 👌