Nthily
07/17/2024, 2:01 AMval context = LocalContext.current
Box(
modifier = Modifier
.width(200.dp)
.height(120.dp)
.background(Color.Gray)
.clickable {
Toast.makeText(context, "Clicked", Toast.LENGTH_LONG).show()
}
) {
BasicTextField(
state = rememberTextFieldState(),
decorator = {
Box(Modifier.border(1.dp, Color.Red)) {
it()
}
}
)
}
I found a problem with BasicTextField
. In the video, it seems that the CJK language triggers the clickable event of the parent layout after hitting the Enter button, but English doesn't get this error 🤔Zach Klippenstein (he/him) [MOD]
07/17/2024, 5:01 AMNthily
07/17/2024, 5:11 AMNthily
07/17/2024, 5:21 AM