Experiments

This commit is contained in:
Avently
2022-10-06 02:04:10 +03:00
parent 0b3048aeef
commit 4390de1e92
@@ -58,28 +58,28 @@ fun ExperimentalAnimationNav(chatModel: ChatModel, setPerformLA: (Boolean) -> Un
enterTransition = {
when (initialState.destination.route) {
"RIGHT" ->
slideIntoContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(700))
slideIntoContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(250))
else -> null
}
},
exitTransition = {
when (targetState.destination.route) {
"RIGHT" ->
slideOutOfContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(700))
slideOutOfContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(250))
else -> null
}
},
popEnterTransition = {
when (initialState.destination.route) {
"RIGHT" ->
slideIntoContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(700))
slideIntoContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(250))
else -> null
}
},
popExitTransition = {
when (targetState.destination.route) {
"RIGHT" ->
slideOutOfContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(700))
slideOutOfContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(250))
else -> null
}
}
@@ -94,28 +94,28 @@ fun ExperimentalAnimationNav(chatModel: ChatModel, setPerformLA: (Boolean) -> Un
enterTransition = {
when (initialState.destination.route) {
"LEFT" ->
slideIntoContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(700))
slideIntoContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(250))
else -> null
}
},
exitTransition = {
when (targetState.destination.route) {
"LEFT" ->
slideOutOfContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(700))
slideOutOfContainer(AnimatedContentScope.SlideDirection.Left, animationSpec = tween(250))
else -> null
}
},
popEnterTransition = {
when (initialState.destination.route) {
"LEFT" ->
slideIntoContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(700))
slideIntoContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(250))
else -> null
}
},
popExitTransition = {
when (targetState.destination.route) {
"LEFT" ->
slideOutOfContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(700))
slideOutOfContainer(AnimatedContentScope.SlideDirection.Right, animationSpec = tween(250))
else -> null
}
}