Мой код такой, как показано ниже.
// состояние модального нижнего листа
Код: Выделить всё
val modalBottomSheetState = rememberModalBottomSheetState(
skipPartiallyExpanded = true
)
Код: Выделить всё
CustomOtpField(
text = accessPin,
onTextChanged = {
if (it.isEmpty()) accessPin = it
it.lastOrNull()?.let { mChar ->
if (!(mChar == '.' || mChar == ' ')) {
if (it.length
Подробнее здесь: [url]https://stackoverflow.com/questions/77201928/i-get-a-gap-between-my-modal-bottom-sheet-and-soft-keyboard-im-using-jetpack-c[/url]