-
Notifications
You must be signed in to change notification settings - Fork 0
[FIX/#153] 키보드 이슈 해결 #154
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
[FIX/#153] 키보드 이슈 해결 #154
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.fillMaxWidth | |||||||||||||||||||||||||||||
| import androidx.compose.foundation.layout.height | ||||||||||||||||||||||||||||||
| import androidx.compose.foundation.layout.padding | ||||||||||||||||||||||||||||||
| import androidx.compose.runtime.Composable | ||||||||||||||||||||||||||||||
| import androidx.compose.runtime.LaunchedEffect | ||||||||||||||||||||||||||||||
| import androidx.compose.runtime.getValue | ||||||||||||||||||||||||||||||
| import androidx.compose.runtime.rememberCoroutineScope | ||||||||||||||||||||||||||||||
| import androidx.compose.ui.Alignment | ||||||||||||||||||||||||||||||
|
|
@@ -19,8 +20,6 @@ import androidx.compose.ui.graphics.Brush | |||||||||||||||||||||||||||||
| import androidx.compose.ui.tooling.preview.Preview | ||||||||||||||||||||||||||||||
| import androidx.compose.ui.unit.dp | ||||||||||||||||||||||||||||||
| import androidx.hilt.navigation.compose.hiltViewModel | ||||||||||||||||||||||||||||||
| import androidx.lifecycle.Lifecycle | ||||||||||||||||||||||||||||||
| import androidx.lifecycle.compose.LifecycleEventEffect | ||||||||||||||||||||||||||||||
| import com.airbnb.lottie.compose.LottieAnimation | ||||||||||||||||||||||||||||||
| import com.airbnb.lottie.compose.LottieCompositionSpec | ||||||||||||||||||||||||||||||
| import com.airbnb.lottie.compose.LottieConstants | ||||||||||||||||||||||||||||||
|
|
@@ -35,23 +34,21 @@ import kotlinx.coroutines.launch | |||||||||||||||||||||||||||||
| @Composable | ||||||||||||||||||||||||||||||
| fun SplashRoute( | ||||||||||||||||||||||||||||||
| navigateToOnboarding: () -> Unit, | ||||||||||||||||||||||||||||||
| navigateToHome: () -> Unit, | ||||||||||||||||||||||||||||||
| paddingValues: PaddingValues, | ||||||||||||||||||||||||||||||
| viewModel: SplashViewModel = hiltViewModel() | ||||||||||||||||||||||||||||||
| ) { | ||||||||||||||||||||||||||||||
| val scope = rememberCoroutineScope() | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| LifecycleEventEffect(Lifecycle.Event.ON_START) { | ||||||||||||||||||||||||||||||
| LaunchedEffect(Unit) { | ||||||||||||||||||||||||||||||
| scope.launch { | ||||||||||||||||||||||||||||||
| delay(3000) | ||||||||||||||||||||||||||||||
| viewModel.isAutoLoginCheck() | ||||||||||||||||||||||||||||||
| viewModel.navigateToOnboarding() | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
Comment on lines
40
to
47
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion | 🟠 Major
♻️ 수정 제안- val scope = rememberCoroutineScope()
-
- LaunchedEffect(Unit) {
- scope.launch {
- delay(3000)
- viewModel.navigateToOnboarding()
- }
- }
+ LaunchedEffect(Unit) {
+ delay(3000)
+ viewModel.navigateToOnboarding()
+ }📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| viewModel.sideEffect.collectLatestSideEffect { sideEffect -> | ||||||||||||||||||||||||||||||
| when (sideEffect) { | ||||||||||||||||||||||||||||||
| SplashSideEffect.NavigateToOnboarding -> navigateToOnboarding() | ||||||||||||||||||||||||||||||
| SplashSideEffect.NavigateToHome -> navigateToHome() | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
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.
🧩 Analysis chain
🏁 Script executed:
# First, locate and read the target file cat -n app/src/main/java/com/cherrish/android/presentation/onboarding/information/OnboardingInformationScreen.ktRepository: TEAM-Cherrish/Cherrish-Android
Length of output: 15266
루트 Column에 paddingValues 적용 필수
현재 코드는 루트 Column에
.padding(paddingValues)를 적용하지 않고 있습니다. 대신 paddingValues에서 하단 패딩만 추출하여 버튼에만 적용되고 있어, 상태바와 내비게이션 바의 패딩이 제대로 처리되지 않을 수 있습니다. 루트 Column 수정자에.padding(paddingValues)를 먼저 적용하세요.✅ 적용 예시
Column( modifier = modifier .fillMaxSize() .background(color = CherrishTheme.colors.gray0) + .padding(paddingValues) ) {📝 Committable suggestion
🤖 Prompt for AI Agents