Thread
#compose
    Jason Roberts

    Jason Roberts

    11 months ago
    Hi, how can i draw this shadow in compose? this shadow info in figma
    Tgo1014

    Tgo1014

    11 months ago
    Adding elevation to a Card should make the shadows for you
    Csaba Kozák

    Csaba Kozák

    11 months ago
    We solved this by creating a modifier which draws the shadow into the canvas.
    Chris Johnson

    Chris Johnson

    11 months ago
    You can also wrap your composable in a
    Surface
    which has elevation as a parameter. If you only need the shadow in a specific direction such as bottom, I would recommend using the canvas to do that.