From 02e32e7557059863158cbbc12c2d04f69c531111 Mon Sep 17 00:00:00 2001 From: tgyuu-An Date: Sat, 17 Feb 2024 17:46:28 +0900 Subject: [PATCH] =?UTF-8?q?[FEATURE]=20#125=20:=20=EC=9A=B4=EC=98=81?= =?UTF-8?q?=EC=A7=84=20=EC=BD=94=EB=93=9C=20=EC=9E=85=EB=A0=A5=20=EC=99=B8?= =?UTF-8?q?=EB=B6=80=20=ED=84=B0=EC=B9=98=20=EC=8B=9C=20=ED=82=A4=EB=B3=B4?= =?UTF-8?q?=EB=93=9C=20=EC=82=AC=EB=9D=BC=EC=A7=80=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../validation/ManagementValidationScreen.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/feature/management/src/main/java/com/wap/wapp/feature/management/validation/ManagementValidationScreen.kt b/feature/management/src/main/java/com/wap/wapp/feature/management/validation/ManagementValidationScreen.kt index 87805180..7184b20a 100644 --- a/feature/management/src/main/java/com/wap/wapp/feature/management/validation/ManagementValidationScreen.kt +++ b/feature/management/src/main/java/com/wap/wapp/feature/management/validation/ManagementValidationScreen.kt @@ -15,6 +15,7 @@ import androidx.compose.runtime.getValue import androidx.compose.runtime.remember import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier +import androidx.compose.ui.platform.LocalFocusManager import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp @@ -23,6 +24,7 @@ import androidx.lifecycle.compose.collectAsStateWithLifecycle import com.wap.designsystem.WappTheme import com.wap.designsystem.component.WappButton import com.wap.designsystem.component.WappTextField +import com.wap.designsystem.modifier.addFocusCleaner import com.wap.wapp.core.commmon.extensions.toSupportingText import com.wap.wapp.feature.management.R import kotlinx.coroutines.flow.collectLatest @@ -36,6 +38,7 @@ fun ManagementValidationScreen( val isError by viewModel.isError.collectAsStateWithLifecycle() val errorSupportingText by viewModel.errorSupportingText.collectAsStateWithLifecycle() val snackBarHostState = remember { SnackbarHostState() } + val focusManager = LocalFocusManager.current LaunchedEffect(true) { viewModel.managementCodeUiState.collectLatest { @@ -56,11 +59,12 @@ fun ManagementValidationScreen( snackbarHost = { SnackbarHost(snackBarHostState) }, ) { paddingValues -> Column( - modifier = Modifier - .padding(paddingValues) - .fillMaxSize(), horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.Center, + modifier = Modifier + .padding(paddingValues) + .fillMaxSize() + .addFocusCleaner(focusManager), ) { Text( text = stringResource(R.string.management_dialog_title),