UX: 수기 입력 기본값을 현재 추정 용량(estimatedVolume)으로 설정
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -163,7 +163,7 @@ fun PiezoMonitoringView(appState: AppState) {
|
|||||||
|
|
||||||
// 수기 입력 다이얼로그
|
// 수기 입력 다이얼로그
|
||||||
if (showManualInput) {
|
if (showManualInput) {
|
||||||
var volumeText by remember { mutableStateOf("") }
|
var volumeText by remember { mutableStateOf(appState.estimatedVolume.toString()) }
|
||||||
AlertDialog(
|
AlertDialog(
|
||||||
onDismissRequest = { showManualInput = false },
|
onDismissRequest = { showManualInput = false },
|
||||||
title = { Text("소변량 입력") },
|
title = { Text("소변량 입력") },
|
||||||
@@ -172,7 +172,7 @@ fun PiezoMonitoringView(appState: AppState) {
|
|||||||
OutlinedTextField(
|
OutlinedTextField(
|
||||||
value = volumeText,
|
value = volumeText,
|
||||||
onValueChange = { volumeText = it.filter { c -> c.isDigit() }.take(4) },
|
onValueChange = { volumeText = it.filter { c -> c.isDigit() }.take(4) },
|
||||||
placeholder = { Text("예: 200") },
|
placeholder = { Text("예: ${appState.estimatedVolume}") },
|
||||||
keyboardOptions = androidx.compose.foundation.text.KeyboardOptions(keyboardType = androidx.compose.ui.text.input.KeyboardType.Number),
|
keyboardOptions = androidx.compose.foundation.text.KeyboardOptions(keyboardType = androidx.compose.ui.text.input.KeyboardType.Number),
|
||||||
singleLine = true,
|
singleLine = true,
|
||||||
modifier = Modifier.weight(1f)
|
modifier = Modifier.weight(1f)
|
||||||
|
|||||||
Reference in New Issue
Block a user