Skip to content

Commit

Permalink
Speed up navigation animations
Browse files Browse the repository at this point in the history
  • Loading branch information
hegocre committed Sep 15, 2023
1 parent f3f93c0 commit e12123c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ package com.yara.raco.ui.components

import android.widget.Toast
import androidx.compose.animation.Crossfade
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
Expand Down Expand Up @@ -88,7 +91,9 @@ fun RacoMainNavHost(
NavHost(
navController = navHostController,
startDestination = RacoScreen.Notes.name,
modifier = modifier
modifier = modifier,
enterTransition = { fadeIn(animationSpec = tween(300)) },
exitTransition = { fadeOut(animationSpec = tween(300)) },
) {
composable(RacoScreen.Notes.name) {
Column {
Expand Down

0 comments on commit e12123c

Please sign in to comment.