alexzhirkevich / compose-cupertino

Compose Multiplatform UI components for iOS (Cupertino Widgets)
Apache License 2.0
936 stars 33 forks source link

Bottom sheet without scaffold pattern #51

Open nilufer32 opened 1 month ago

nilufer32 commented 1 month ago

Is it possible to have the bottom sheet that's part of CupertinoBottomSheetScaffold without the scaffold wrapper? just a regular bottom sheet with the regular sheet behavior?

nilufer32 commented 1 month ago

@alexzhirkevich I attempted to do this myself by decoupling the bottom sheet component from the bottom sheet scaffold as I dont want to use the scaffold pattern in my app as this will result in multiple nested scaffolds if I wanted to display multiple sheets at the same time. Unfortunately I couldn't easily find a way to decouple the sheet from the scaffold, any ideas on this? thanks!

kalist28 commented 1 month ago

There are implementations to open a modal sheet on Android and a system sheet on iOS, but as far as I know, there is a problem (maybe they have already solved) with the nested scroll on iOS, that is, a simple list will not scroll, this action will affect the opening/hiding of the system sheet.

Correct me if I'm wrong

nilufer32 commented 1 month ago

I wasn't referring to the system sheet on IOS or the modal sheet on Android. I was asking if its possible to extract the bottom sheet component from Cupertino just without the scaffold pattern so that I wouldn't have to implement multiple nested scaffolds if I wanted to show multiple bottom sheets at once.