Closed syru88 closed 3 months ago
You are supposed to add a windows insets handling to the bottomsheet:
ModalBottomSheet(
onDismissRequest = { dialogShown = false },
sheetState = sheetState,
windowInsets = WindowInsets.ime
) {...}
thank you very much! 👏 Anyway, when I tried your solution, the result wasn't perfect. You have probably different simulator or use ComposeView().ignoresSafeArea(.all)
in swift. With ComposeView().ignoresSafeArea(.keyboard)
, which is default from KMP wizard, the result is as follows...
You are right. I use .all
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Describe the bug When bottom sheet with TextField and another view is shown and TextField is focused, keyboard overlaps part of bottom sheet and I'm not able to see "Close" button . (check attached video)
Affected platforms
Versions
To Reproduce Steps to reproduce the behavior:
Checkout code from https://github.com/syru88/BottomSheetWithInputAndButton or use this snippet:
@Composable private fun SimpleButton(text: String, onClick: () -> Unit) { Button(onClick) { Text(text) } }