If you are using a version below 2.7.0, then you can use this method to remove the animation
NavHost(
navController = navController,
startDestination = startDestination,
modifier = Modifier
.fillMaxSize(),
enterTransition = { EnterTransition.None },
exitTransition = { ExitTransition.None },
popEnterTransition = { EnterTransition.None },
popExitTransition = { ExitTransition.None },
)
If you are using version 2.7.0 or above, this version seems to trigger a scaling animation that cannot be removed.
You can only upgrade
implementation("androidx.compose.ui:ui:ui:1.6.0-alpha03")
and then it will be normal
I saw others having this happen here https://issuetracker.google.com/issues/297258205#comment1
If you are using a version below 2.7.0, then you can use this method to remove the animation
NavHost(
navController = navController,
startDestination = startDestination,
modifier = Modifier
.fillMaxSize(),
enterTransition = { EnterTransition.None },
exitTransition = { ExitTransition.None },
popEnterTransition = { EnterTransition.None },
popExitTransition = { ExitTransition.None },
)
If you are using version 2.7.0 or above, this version seems to trigger a scaling animation that cannot be removed.
You can only upgrade
implementation("androidx.compose.ui:ui:ui:1.6.0-alpha03")
and then it will be normal
I saw others having this happen here https://issuetracker.google.com/issues/297258205#comment1