How can I achieve a nested scroll with compose? :t...
# compose
h
How can I achieve a nested scroll with compose? 🤔
m
What is your usecase? Nested scrolling (without nested fling) is achievable right now automatically when you use
Modifier.scrollable
or
Modifier.dragGestureFilter
(which will be renamed to scrollGestureFilter later) and return right amount of delta consumed, so the next scrollable parent up in hierarchy receives what child wasn't able to consume. This solves simple cases by default. We have plan to provide more sophisticated and granular nested scrolling handling later, currently at the prototyping stage. But sharing your usecase mighty help us understand users needs.
h
Copy code
Column {
    Text("Products")
    LazyColumnItems(items = Mocks.products) { product ->
        ProductItem(product)
    }
}
I want to do something like this
But the
Text("Products")
is floating over the list
m
Sorry, you want text to float or in the example you provided above it's already floating?
h
It's already floating...
Oh! Solved ✔️
I was wrong 😄
I'd like to do like this. But with
LazyColumnItems
But when I use
LazyColumnItems
>>>
😞