Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
riggaroo committed Apr 29, 2024
1 parent 61b7a5e commit c44327e
Showing 1 changed file with 17 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,25 @@ import java.lang.IllegalStateException

@Composable
fun DestinationBar(modifier: Modifier = Modifier) {
val sharedElementScope = LocalSharedTransitionScope.current ?: throw IllegalStateException("No shared element scope")
val navAnimatedScope = LocalNavAnimatedVisibilityScope.current ?: throw IllegalStateException("No nav scope")
with(sharedElementScope){
with (navAnimatedScope){
Column(modifier = modifier
.renderInSharedTransitionScopeOverlay()
.animateEnterExit(enter = slideInVertically(spatialExpressiveSpring()) { -it }, exit = slideOutVertically(spatialExpressiveSpring()) { -it })) {
val sharedElementScope =
LocalSharedTransitionScope.current ?: throw IllegalStateException("No shared element scope")
val navAnimatedScope =
LocalNavAnimatedVisibilityScope.current ?: throw IllegalStateException("No nav scope")
with(sharedElementScope) {
with(navAnimatedScope) {
Column(
modifier = modifier
.renderInSharedTransitionScopeOverlay()
.animateEnterExit(
enter = slideInVertically(spatialExpressiveSpring()) { -it },
exit = slideOutVertically(spatialExpressiveSpring()) { -it })
) {
TopAppBar(
backgroundColor = JetsnackTheme.colors.uiBackground.copy(alpha = AlphaNearOpaque),
backgroundColor = JetsnackTheme.colors.uiBackground
.copy(alpha = AlphaNearOpaque),
contentColor = JetsnackTheme.colors.textSecondary,
contentPadding = WindowInsets.systemBars.only(Horizontal + Top).asPaddingValues(),
contentPadding = WindowInsets.systemBars.only(Horizontal + Top)
.asPaddingValues(),
elevation = 0.dp,
) {
Text(
Expand Down

0 comments on commit c44327e

Please sign in to comment.