Updated on 2026-08-14

This commit is contained in:
Tangem 2024-07-15 20:25:38 +03:00
parent 75f8a45cd4
commit f7412dfd86
3 changed files with 14 additions and 7 deletions

View file

@ -141,6 +141,7 @@ inline fun <reified T : TangemBottomSheetConfigContent> BasicBottomSheet(
val model = config.content as? T ?: return
val statusBarHeight = with(LocalDensity.current) { WindowInsets.statusBars.getTop(this).toDp() }
val bottomBarHeight = with(LocalDensity.current) { WindowInsets.systemBars.getBottom(this).toDp() }
ModalBottomSheet(
// FIXME temporary solution to fix height of the bottom sheet
@ -155,7 +156,7 @@ inline fun <reified T : TangemBottomSheetConfigContent> BasicBottomSheet(
Column(
modifier = Modifier.let {
if (addBottomInsets) {
it.navigationBarsPadding()
it.padding(bottom = bottomBarHeight)
} else {
it
}