Thread
#compose
    brandonmcansh

    brandonmcansh

    2 years ago
    Above snippet is the drawerContent in the BottomDrawerLayout)
    matvei

    matvei

    2 years ago
    BottomDrawerLayout
    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 component
    brandonmcansh

    brandonmcansh

    2 years ago
    gotcha; yeah this gets me desired effect that I had in MDC prior. Thanks @matvei I appreciate the look over
    matvei

    matvei

    2 years ago
    "optimized way" part of answer: What you see in Drawers is the way to go and it's an optimised version, as we use
    Modifier.offsetPx
    there that accepts
    State<Float>
    to perform only relayout when user is dragging the sheet, and no recomposition or remeasure
    brandonmcansh

    brandonmcansh

    2 years ago
    perfect