Skip to content

Commit

Permalink
feat: 로그인 화면 애니메이션 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
rhkrwngud445 committed Aug 5, 2024
1 parent c3a38d0 commit badfbd9
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.withpeace.withpeace.feature.login.navigation

import androidx.compose.animation.AnimatedContentTransitionScope
import androidx.compose.animation.core.tween
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavOptions
Expand All @@ -17,7 +19,15 @@ fun NavGraphBuilder.loginNavGraph(
onSignUpNeeded: () -> Unit,
onLoginSuccess: () -> Unit,
) {
composable(route = LOGIN_ROUTE) {
composable(
route = LOGIN_ROUTE,
enterTransition = {
slideIntoContainer(
AnimatedContentTransitionScope.SlideDirection.Left,
animationSpec = tween(500),
)
}
) {
LoginRoute(
onShowSnackBar = onShowSnackBar,
onSignUpNeeded = onSignUpNeeded,
Expand Down

0 comments on commit badfbd9

Please sign in to comment.