chansek
03/12/2022, 5:07 PMandroid:windowSoftInputMode="adjustResize"
But if my TextField
is inside a ModalBottomSheet
, then this doesn't work. What should be the fix for this?ste
03/12/2022, 5:43 PMval coroutineScope = rememberCoroutineScope()
val bringIntoViewRequester = remember { BringIntoViewRequester() }
BasicTextField(
modifier = Modifier
.bringIntoViewRequester(bringIntoViewRequester)
.onFocusEvent { state ->
if (state.hasFocus || state.isFocused) {
coroutineScope.launch {
delay(300) // important!
bringIntoViewRequester.bringIntoView()
}
}
}
)
chansek
03/12/2022, 6:18 PMTextField
and keyboard pops up. But ones keybaord is already up and you start clicking on ImeAction.Next
button, the `TextField`s present behind the keyboard stays there and doesn't come to visible window.ste
03/12/2022, 6:19 PMZach Klippenstein (he/him) [MOD]
03/12/2022, 9:17 PMchansek
03/13/2022, 3:30 AM