https://kotlinlang.org logo
#compose
Title
# compose
z

Zach Klippenstein (he/him) [MOD]

06/07/2020, 7:05 PM
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

Kazemihabib1996

06/07/2020, 7:11 PM
z

Zach Klippenstein (he/him) [MOD]

06/07/2020, 7:13 PM
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

Kazemihabib1996

06/07/2020, 7:39 PM
@maciejciemiega