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

Jasmin Fajkic

08/23/2022, 5:48 PM
Would it be possible to define different screen transition for same route? For example with deeplink i want to have bottom sheet behaviour and if going from screen A to B i want to have push stack behaviour?
i

Ian Lake

08/23/2022, 5:50 PM
When you're using
AnimatedNavHost
, each
enterTransition
gives you an
AnimatedContentScope
, which lets you access the
initialState
(where you are coming from) and
targetState
(where you are going to) which lets you customize exactly what animations you run. We talk about this in the blog post: https://medium.com/androiddevelopers/animations-in-navigation-compose-36d48870776b
j

Jasmin Fajkic

08/23/2022, 5:51 PM
wow wow thx a lot man!!!
3 Views