-
Notifications
You must be signed in to change notification settings - Fork 2
[feat/#30] Splash UI 구현 #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
JiWoo1261
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
처음보다 코드가 많이 깔끔해진 것 같아요! 수고햇더여. .🥵
sonms
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!!!
|
|
||
| @Preview(showBackground = true) | ||
| @Composable | ||
| fun PreviewLoginScreen() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Private 로 해주세요~
| .padding(horizontal = 16.dp, vertical = 48.dp) | ||
| .background(color = PawKeyTheme.colors.white1) | ||
| ) { | ||
| Column( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 부분 column 없이 가능할 거 같은데 깊어질 수록 성능저하가 발생하기 때문에 확인해주세용
| splashNavGraph( | ||
| paddingValues = paddingValues, | ||
| navigateUp = navigator::navigateUp, | ||
| navigateNext = navigator::navigateDummyNext, | ||
| navigateLogin = navigator::navigateLogin, | ||
| snackBarHostState = snackbarHostState | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
navigateNext 자체가 splash의 다음을 지정하는거라 navigateLogin을 따로 만들어서 할 필요가 없을 것 같아요~ 밑에도 다시 확인해주세여~
|
|
||
| @Preview(showBackground = true) | ||
| @Composable | ||
| fun PreviewSplashScreen() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?"~!?
| Column(horizontalAlignment = Alignment.CenterHorizontally) { | ||
| Icon( | ||
| imageVector = ImageVector.vectorResource(id = R.drawable.ic_logo_draft), | ||
| contentDescription = stringResource(id = R.string.ic_logo), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿뜨
| init { | ||
| viewModelScope.launch { | ||
| delay(1800) | ||
| _sideeffect.emit(SplashContract.SplashSideEffect.NavigateToLogin) | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
뷰모델에서 delay로 직접 처리할 시 UI 상태 관리와는 별개의 UI 전환 로직을 포함하는 것이기 때문에 지양하고 UI에서 진행해주세요.
name: pull_request_template
about: pr 생성용 템플릿입니다~
title: ''
labels: ''
assignees: ''
ISSUE
❗ WORK DESCRIPTIONAdd commentMore actions
📸 SCREENSHOT
splash.mp4
📢 TO REVIEWERS