From fe634f1f6d24874616683b26d514135ea55391c3 Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Tue, 28 Oct 2025 15:31:55 +0900 Subject: [PATCH] [MOD/#422] add sheetMaxWidth --- .../component/bottomsheet/SpoonyAdvancedBottomSheet.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/spoony/spoony/core/designsystem/component/bottomsheet/SpoonyAdvancedBottomSheet.kt b/app/src/main/java/com/spoony/spoony/core/designsystem/component/bottomsheet/SpoonyAdvancedBottomSheet.kt index 8747f6be5..8ef0757f0 100644 --- a/app/src/main/java/com/spoony/spoony/core/designsystem/component/bottomsheet/SpoonyAdvancedBottomSheet.kt +++ b/app/src/main/java/com/spoony/spoony/core/designsystem/component/bottomsheet/SpoonyAdvancedBottomSheet.kt @@ -4,6 +4,7 @@ import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier +import androidx.compose.ui.unit.Dp import com.spoony.spoony.core.designsystem.theme.SpoonyAndroidTheme import com.spoony.spoony.core.designsystem.type.AdvancedSheetState import io.morfly.compose.bottomsheet.material3.BottomSheetScaffold @@ -16,6 +17,7 @@ fun SpoonyAdvancedBottomSheet( sheetContent: @Composable () -> Unit, modifier: Modifier = Modifier, sheetSwipeEnabled: Boolean = true, + sheetMaxWidth: Dp = Dp.Infinity, dragHandle: @Composable () -> Unit = { SpoonyBasicDragHandle() }, content: @Composable () -> Unit ) { @@ -27,7 +29,8 @@ fun SpoonyAdvancedBottomSheet( sheetSwipeEnabled = sheetSwipeEnabled, modifier = modifier, sheetContainerColor = SpoonyAndroidTheme.colors.white, - sheetDragHandle = dragHandle + sheetDragHandle = dragHandle, + sheetMaxWidth = sheetMaxWidth ) { content() }