Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Jetpack Compose version: 1.7.0-beta06
Jetpack Compose component used: Animation
I'm trying to achieve a list-detail screen with a shared transition between the list and detail content. I want to be able to the fling the detail content downwards to dismiss it, returning to the list screen.
I can achieve some of this with
AnimatedContent
+SharedTransitionScope
for the transitions, andModifier.draggable
+Animatable
for the fling-to-dismiss. However, I can't figure out a good way to "continue" the fling into the shared transition. Animating the item to offset 0 works normally, but that gets ignored once the item is rendered in the transition overlay, so the velocity is lost. I've tried a few ideas for making this work, but haven't found something satisfactory, so this is basically a FR ticket for either a recommendation in the shared transition docs, or API changes to make something like this more doable.0
in lookahead passes but using that breaks the animation