File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
kotlin/io/homeassistant/companion/android/util/compose Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import androidx.compose.foundation.layout.Row
88import androidx.compose.foundation.layout.fillMaxWidth
99import androidx.compose.foundation.layout.padding
1010import androidx.compose.foundation.layout.size
11+ import androidx.compose.foundation.layout.windowInsetsPadding
1112import androidx.compose.foundation.shape.RoundedCornerShape
1213import androidx.compose.material.MaterialTheme
1314import androidx.compose.material.Surface
@@ -21,6 +22,7 @@ import androidx.compose.ui.text.style.TextAlign
2122import androidx.compose.ui.unit.dp
2223import io.homeassistant.companion.android.R
2324import io.homeassistant.companion.android.common.R as commonR
25+ import io.homeassistant.companion.android.util.safeBottomWindowInsets
2426
2527/* *
2628 * A Material 3-style modal bottom sheet with an optional handle, for use with a
@@ -36,7 +38,9 @@ fun ModalBottomSheet(
3638 Surface (
3739 shape = RoundedCornerShape (topStart = sheetCornerRadius, topEnd = sheetCornerRadius)
3840 ) {
39- Column {
41+ Column (
42+ modifier = Modifier .windowInsetsPadding(safeBottomWindowInsets())
43+ ) {
4044 if (showHandle) {
4145 Row (
4246 modifier = Modifier
Original file line number Diff line number Diff line change 1616 </style >
1717
1818 <style name =" ThemeOverlay.HomeAssistant.BottomSheetDialog" parent =" ThemeOverlay.HomeAssistant.BottomSheetDialog.Base" >
19- <item name =" android:navigationBarColor" >@color/colorSurface </item >
19+ <item name =" android:navigationBarColor" >@android: color/transparent </item >
2020 <item name =" android:windowLightNavigationBar" >@bool/isLightMode</item >
21+ <item name =" enableEdgeToEdge" >true</item >
22+ <item name =" paddingBottomSystemWindowInsets" >false</item >
23+ <item name =" paddingLeftSystemWindowInsets" >false</item >
24+ <item name =" paddingRightSystemWindowInsets" >false</item >
2125 </style >
2226</resources >
You can’t perform that action at this time.
0 commit comments