Код: Выделить всё
@Composable
private fun NewObject(
popupWidth: Float,
popupHeight:Float,
focusRequester: FocusRequester,
onClickOutside: () -> Unit,
)
{
var field by remember { mutableStateOf("") }
Popup(
alignment = Alignment.Center,
onDismissRequest = { onClickOutside() },
) {
Column(
Modifier
.width(popupWidth.dp)
.height(popupHeight.dp)
.background(Color.White)
.clip(RoundedCornerShape(4.dp))
horizontalAlignment = Alignment.CenterHorizontally
) {
OutlinedTextField(value = field,
onValueChange = { field = it },
label = { Text("Enter text") },
modifier = Modifier
.focusRequester(focusRequester)
)
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/785 ... ck-compose