brandonmcansh
07/27/2020, 3:36 PMmatvei
07/27/2020, 3:41 PMBottomDrawerLayout
is the only API that can give you similar to what you want experience.
We have plans to provide proper BottomSheet
or Backdrop
components in the future, but no timeline for this.
What you can do in the meantime is to take a look at the internals of BottomDrawer
, copypaste it and tweak as you like. It will be way easier than in current android, as BottomDrawerLayout
is just few building blocks assembled together and not a gigantic everything-in-one componentbrandonmcansh
07/27/2020, 3:42 PMmatvei
07/27/2020, 3:43 PMModifier.offsetPx
there that accepts State<Float>
to perform only relayout when user is dragging the sheet, and no recomposition or remeasurebrandonmcansh
07/27/2020, 3:45 PM