From 0ca1a1c15e7ff91d82a9759a517201483a0a6585 Mon Sep 17 00:00:00 2001 From: Artem Chepurnoy Date: Fri, 5 Jul 2024 11:23:36 +0300 Subject: [PATCH] fix: Modal bottom sheet no longer has additional padding --- .../com/artemchep/keyguard/ui/LeMOdelBottomSheet.kt | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/common/src/androidMain/kotlin/com/artemchep/keyguard/ui/LeMOdelBottomSheet.kt b/common/src/androidMain/kotlin/com/artemchep/keyguard/ui/LeMOdelBottomSheet.kt index d56f147d..2ef3a1d5 100644 --- a/common/src/androidMain/kotlin/com/artemchep/keyguard/ui/LeMOdelBottomSheet.kt +++ b/common/src/androidMain/kotlin/com/artemchep/keyguard/ui/LeMOdelBottomSheet.kt @@ -2,11 +2,6 @@ package com.artemchep.keyguard.ui import android.content.res.Configuration import androidx.compose.foundation.layout.PaddingValues -import androidx.compose.foundation.layout.WindowInsets -import androidx.compose.foundation.layout.WindowInsetsSides -import androidx.compose.foundation.layout.asPaddingValues -import androidx.compose.foundation.layout.only -import androidx.compose.foundation.layout.systemBars import androidx.compose.material3.ModalBottomSheet import androidx.compose.material3.rememberModalBottomSheetState import androidx.compose.runtime.Composable @@ -38,14 +33,11 @@ actual fun LeMOdelBottomSheet( skipPartiallyExpanded = false, ) if (visible) { - val contentInsets = WindowInsets.systemBars - .only(WindowInsetsSides.Bottom) - val contentPadding = contentInsets - .asPaddingValues() ModalBottomSheet( onDismissRequest = onDismissRequest, sheetState = bottomSheetState, content = { + val contentPadding = PaddingValues(0.dp) content(contentPadding) }, )