Has the Compose team (or anyone else) thought abou...
# compose
z
Has the Compose team (or anyone else) thought about what “shared element transitions” might look like for Compose-based navigation?
10
I don’t see any mention of this in the
compose-router
README, but I’m curious if @Zsolt has any thoughts?
You could almost use
Transition
for this, but it requires a
TransitionDefinition
to be defined ahead of time, which is awkward for transitioning between arbitrary screens.
I wrote up some ideas here, but i’m not sure how feasible it would be to implement (haven’t tried yet): https://github.com/zach-klippenstein/compose-backstack/issues/27
k
z
Ha, I even reacted to that. I must have read the code too, because i came up with roughly the same api 😅
😀 1
The main difference is using a wrapper for the
SharedElement
vs using a modifier. I’m curious, did you play with using a modifier for that at all?
k
@maciejciemiega