Would it be possible to define different screen tr...
# compose
j
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
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
wow wow thx a lot man!!!