why
08/30/2023, 4:23 PMBottomSheetMaxWidth = 640.dp
in future releases of material3 BottomSheetScaffold
and just pass it as a default value/preference?Ian Lake
08/30/2023, 4:36 PMwhy
08/30/2023, 7:21 PMIan Lake
08/30/2023, 7:22 PMwhy
08/30/2023, 7:27 PMIan Lake
08/30/2023, 7:28 PMAnchoredDraggable
, the lower level API you can build your own components on top ofwhy
08/30/2023, 7:29 PMStylianos Gakis
08/30/2023, 7:36 PMwhy
08/30/2023, 7:37 PMStylianos Gakis
08/30/2023, 7:38 PMIan Lake
08/30/2023, 8:16 PManchoredDraggable
is all public Compose Foundation APIs: https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/package-summary#(androidx.compose.ui.M[…]tableInteractionSource)Tapan Desai
09/08/2023, 11:50 AMmaxWidth
for some specific usecases.
That way, developers wouldn’t have to unnecessarily spend time on rewriting a component or re-inventing the wheel.
We came across this scenario, when we wanted to show our payment screen in a bottom sheet layout on tablet. Attaching screenshot for reference.
In the end, we had to make a custom component which took a day or so. The time we could have spent on the payment screen itself, if we just had a way to override the maxWidth
I am sure, there are many others who would benefit from having an option to override this.
Please consider this for a future release.Ian Lake
09/08/2023, 2:13 PMTapan Desai
09/08/2023, 2:15 PMI think that is exactly the kind of UI Material doesn’t want you to write for large screens.I am not sure I understand. Can you please elaborate here? Also, we make what we get from UX Designers. And they want very specific things
Stylianos Gakis
09/08/2023, 2:33 PMWhat we get from UX Designers. And they want very specific things
Yes, and if those things aren't the very exact things that the material design specs mention, then it makes total sense that you need a custom component.
Tapan Desai
09/09/2023, 4:06 AMShopify POS
app on a tab, you will see that they use bottom sheet extensively and it is taking the maximum width available.
So in short, the default behaviour (maxWidth
in this context) of the bottomsheet will follow material guidelines and if needed, developer can override it for some specific usecases. After all it has a Modifier
propertyIan Lake
09/09/2023, 4:28 AMIan Lake
09/09/2023, 4:36 AMTapan Desai
09/09/2023, 4:46 AMPlanned
on material.io)
The other reason is, the UX team said that we have an entire payment (checkout) journey, which means multiple screens. So side sheet was not suitable for that
If I may ask, is it possible for you to share a possible timeframe for SideSheet to be available in Compose. Even if it’s in alpha release?Ian Lake
09/09/2023, 4:49 AMTapan Desai
09/09/2023, 5:07 AMFabio Grumiro
10/10/2023, 3:04 PMwhy
10/19/2023, 2:31 PMAtul Gupta
11/23/2023, 10:11 PMStandardBottomSheet
😔