https://kotlinlang.org logo
#compose
Title
# compose
g

georgiy.shur

08/10/2021, 1:13 PM
I’m trying to add a custom designed bottom sheet using
ModalBottomSheetLayout
. But I’m struggling to add a dragging indicator above the sheet (see the image). In the old framework I could use anchor for this, but it seems there’s nothing like this in Compose. I know that I could always achieve the same effect using custom content and not use the shape for bottom sheet, but it doesn’t seem very clean. The screenshot of what I’m trying to achieve is in the thread.
👋 1
g

georgiy.shur

08/10/2021, 5:00 PM
Thanks, looks cool, but it seems like a completely custom solution, I’d like to stick to
ModalBottomSheetLayout
or
BottomSheetScaffold
if it’s possible.
s

Shakil Karim

08/10/2021, 6:56 PM
I think this project is also using
BottomSheetScaffold
Just dragging indicator is a simple Box composable
3 Views