When I follow this (https://developer.android.com/reference/kotlin/androidx/compose/ui/input/nestedscroll/package-summary) official example for a collapseable toolbar using NestedScrollConnection it only works if there are enough items for scroll to be needed.
If e.g. you only make it with 10 items, when you then drag the view the toolbar gets pushed offscreen even though the list isnt being scrolled.
Any ideas?
The Material 3 AppBar supports this behavior; you could borrow from what they're doing.
n
nlindberg
10/18/2022, 7:54 PM
I think maybe what they have in the material3 appbar is a if(!canScroll()) return Offset.Zero. is there any good way to implement a canScroll on a Lazy column?