Does Compose have something similar to Android <Ed...
# compose
c
Does Compose have something similar to Android EdgeEffect?
👀 7
a
Coming soon. You should be able to wire up the existing one today using the android native canvas interop if you're interested.
l
Will we also have actual overscroll (macOS-like)? It's something I'd like to offer as a user preference.
c
+1. I want this too. In Flutter it's called BouncingScrollPhysics
âž• 4
j
I remember that image 🤣
r
This effect is very much part of the overall system user experience and we most likely won’t offer alternatives that would create inconsistent user experience.
l
Do you use the Pixel launcher?
😂 1
In case you wonder why such a question: The Pixel launcher has elastic physics-based (aka. bouncing) overscroll: • sideways on home pages and in app folders • vertically in the app drawer/library
c
Agreed, and Android's ListView is also based on elastic physics.
âž• 1
j
@romainguy I can understand material artifact gives specific over scroll effects (probably "ripple" plus bounce physics in android 12). But is it not possible to have a public API in common code to allow creating custom effects?
l
Wow, the stretch effect is definitely cooler than I thought! And since it's simply a scale, I guess it's easy on the GPU and CPU. I think it's a nice competitor to the overscroll thing in any list in iOS where you get the nice effect on scroll attempt, even if everything fits into the screen.
🙌 4