Subject: [PATCH] Allow overriding default maximum width for ModalBottomSheetLayout.
---
Index: compose/material/material/src/commonMain/kotlin/androidx/compose/material/ModalBottomSheet.kt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/compose/material/material/src/commonMain/kotlin/androidx/compose/material/ModalBottomSheet.kt b/compose/material/material/src/commonMain/kotlin/androidx/compose/material/ModalBottomSheet.kt
--- a/compose/material/material/src/commonMain/kotlin/androidx/compose/material/ModalBottomSheet.kt	(revision a985c4364dfe0518ddc6a3fc023f52d136c61fec)
+++ b/compose/material/material/src/commonMain/kotlin/androidx/compose/material/ModalBottomSheet.kt	(revision a30d765bca468c46cb09ee5d75b64ade692c1819)
@@ -563,6 +563,7 @@
 fun ModalBottomSheetLayout(
     sheetContent: @Composable ColumnScope.() -> Unit,
     modifier: Modifier = Modifier,
+    sheetMaxWidth: Dp = MaxModalBottomSheetWidth,
     sheetState: ModalBottomSheetState =
         rememberModalBottomSheetState(Hidden),
     sheetGesturesEnabled: Boolean = true,
@@ -602,7 +603,7 @@
         Surface(
             Modifier
                 .align(Alignment.TopCenter) // We offset from the top so we'll center from there
-                .widthIn(max = MaxModalBottomSheetWidth)
+                .widthIn(max = sheetMaxWidth)
                 .fillMaxWidth()
                 .then(
                     if (sheetGesturesEnabled) {