Luca Nicoletti

    Luca Nicoletti

    2 years ago
    What’s the corresponding of:
    setShadowLayer
    in
    androidx.ui.graphics.Paint
    ? Is there a way to draw shadow inside
    Draw {}
    composable?
    Yann Badoual

    Yann Badoual

    2 years ago
    Can't you use
    DrawShadow
    with your shape?
    l

    Leland Richardson [G]

    2 years ago
    depending on what you’re wanting, i think Surface is the easiest way to accomplish a shadow right now, as it uses RenderNode’s elevation directly
    i believe this will eventually become an
    elevation(…)
    modifier but i’m not 100% sure
    i don’t know offhand the way to accomplish this directly with canvas
    but i suspect it will be slower