Skip to content
Discussion options

You must be logged in to vote

I think you need to have a separate component for the fullscreen stack. It could be as follows:

RootComponent (contains `ChildStack`)
|- HomeComponent (contains `ChildPages`)
|  |- FinancesComponent
|- AccountDetailsComponent

You can pass SharedTransitionScope and AnimatedVisibilityScope from the root Composable toAccountDetailsScreen and to FinancesScreen through HomeScreen. You can also define a Composition Local for this to simplify the code.

@OptIn(ExperimentalSharedTransitionApi::class)
val LocalSharedTransitionScope: ProvidableCompositionLocal<SharedTransitionScope> =
    compositionLocalOf { error("LocalSharedTransitionScope was not provided") }

val LocalAnimatedVisibilityScope: P…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@arkivanov
Comment options

@chennemann
Comment options

@arkivanov
Comment options

@chennemann
Comment options

@arkivanov
Comment options

Answer selected by chennemann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants