mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Use safeDrawingPadding for ModalBottomSheetContent (#4289)
Prevents bottom sheet content from being obscured by the navigation bar
This commit is contained in:
@@ -7,6 +7,7 @@ import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.RowScope
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.safeDrawingPadding
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.ProvideTextStyle
|
||||
import androidx.compose.runtime.Composable
|
||||
@@ -25,7 +26,8 @@ fun ModalBottomSheetContent(
|
||||
|
||||
Column(
|
||||
modifier = modifier
|
||||
.fillMaxWidth(),
|
||||
.fillMaxWidth()
|
||||
.safeDrawingPadding(),
|
||||
) {
|
||||
title?.let {
|
||||
Box(modifier = Modifier.padding(start = 16.dp, end = 16.dp)) {
|
||||
|
||||
Reference in New Issue
Block a user