From 3bf8b971428eee5b4a5eb4b7c5001cb19cdb494c Mon Sep 17 00:00:00 2001 From: Patryk Michalik Date: Thu, 3 Jun 2021 17:45:41 +0200 Subject: [PATCH] =?UTF-8?q?`BottomSheet`:=20Don=E2=80=99t=20round=20bottom?= =?UTF-8?q?=20corners?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lawnchair/ui/preferences/components/BottomSheet.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lawnchair/src/app/lawnchair/ui/preferences/components/BottomSheet.kt b/lawnchair/src/app/lawnchair/ui/preferences/components/BottomSheet.kt index 78e00cfdfb..2fdf4664bf 100644 --- a/lawnchair/src/app/lawnchair/ui/preferences/components/BottomSheet.kt +++ b/lawnchair/src/app/lawnchair/ui/preferences/components/BottomSheet.kt @@ -2,11 +2,13 @@ package app.lawnchair.ui.preferences.components import androidx.compose.animation.core.AnimationSpec import androidx.compose.foundation.layout.ColumnScope +import androidx.compose.foundation.shape.CornerSize import androidx.compose.material.* import androidx.compose.runtime.* import androidx.compose.runtime.saveable.Saver import androidx.compose.runtime.saveable.rememberSaveable import androidx.compose.ui.graphics.Color +import androidx.compose.ui.unit.dp import app.lawnchair.ui.util.portal.Portal import app.lawnchair.util.backHandler import kotlinx.coroutines.launch @@ -27,7 +29,11 @@ fun BottomSheet( ModalBottomSheetLayout( sheetState = modalBottomSheetState, sheetContent = currentSheetContent, - scrimColor = scrimColor + scrimColor = scrimColor, + sheetShape = MaterialTheme.shapes.large.copy( + bottomStart = CornerSize(0.dp), + bottomEnd = CornerSize(0.dp) + ) ) { backHandler { scope.launch { sheetState.onBackPressed() }