1

I want to show a shadow at the top of the Jetpack Compose bottom sheet(like in the attached picture). I tried to use ModalBottomSheetLayout and BottomDrawer composables' elevation values. The elevation seems like adding the shadow at the bottom of the sheet. How could I achieve this?

enter image description here

  • Have you tried using Modifier.shadow(elevation = X.dp)? X would most likely have to be a larger than usual number to be visible at the top. – Arthur Kasparian Nov 09 '22 at 21:53
  • This just adds a shadow to the screen. It looks like a border has been applied to a screen. This is not the desirable effect. – Anmol Singh Sahi Nov 10 '22 at 04:33

0 Answers0