Peter Mandeljc

    Peter Mandeljc

    1 year ago
    Anyone had problems, when setting transparent background to Snackbar?
    l

    Luis

    1 year ago
    That seems to be the shadow drawn by the elevation property. Have you tried setting the elevation to 0?
    Peter Mandeljc

    Peter Mandeljc

    1 year ago
    yeah, just wanted to write that 🙂
    works with 0 elevation
    k

    Kirill Grouchnikov

    1 year ago
    Elevation doesn't work well with translucent surfaces
    a

    alorma

    1 year ago
    Good solution is to use your color with alpha composed over surface color:
    MaterialTheme.colors.onSurface.copy(alpha = 0.12f).compositeOver(color = MaterialTheme.colors.surface)
    This way you get the same effect of alpha color but you can have elevation
    It works on cards etc...