-
Notifications
You must be signed in to change notification settings - Fork 0
[layout] Add Dayo Loading Component #614
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
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.
비어있는 clickable이 왜 있는지 궁금했는데 로딩 뒤의 화면이 클릭 되지 않기 위함이었군요!!
로딩 화면 잘 쓰겠습니다~~
presentation/src/main/java/daily/dayo/presentation/view/Loading.kt
Outdated
Show resolved
Hide resolved
modifier: Modifier = Modifier, | ||
message: String = "잠시만 기다려 주세요", | ||
dimColor: Color = Dark.copy(alpha = 0.4f), | ||
lottieFile: Int, |
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.
- lottieFile이 필수 파라미터라면 파라미터 순서를 위쪽으로 올려주세요. 아니면 디폴트 값을 넣어둬도 될 것 같습니다!
- 아래 코드에서 rawResId로 사용되는 것 같은데
@RawRes
lottieFile: Int 로 어노테이션을 붙이는 것이 좋아보입니다
lottieFile: Int, | |
@RawRes lottieFile: Int = R.raw.dayo_loading, |
- 그러면서 디자인에 맞게 기본 lottieModifier 크기도 92x85로 설정 되어있으면 더 편하게 쓸 수 있을 것 같아요!
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.
반영하였습니다 👍
@RawRes lottieFile: Int = R.raw.dayo_loading, | ||
lottieModifier: Modifier = Modifier, | ||
lottieWidth: Dp = 92.dp, | ||
lottieHeight: Dp = 85.dp, | ||
isVisible: Boolean, | ||
modifier: Modifier = Modifier, | ||
message: String = "잠시만 기다려 주세요", | ||
message: String = stringResource(id = R.string.loading_default_message), | ||
dimColor: Color = Dark.copy(alpha = 0.4f), |
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.
필수 파라미터인 isVisible을 가장 위로 올려주시면 감사하겠습니다!
작업 사항
구현 내용
Float.MAX_VALUE
로 설정해 다른 화면들보다 항상 위에 뜰 수 있도록 설정구현 화면
Screen_Recording_20250114_215730_DAYO.Debug.mp4