Thread
#compose
    s

    Shawn Tucker

    1 year ago
    LocalElevationOverlay.provides(null)
    is not working. I still get elevation overlay on my surface. What am I missing?
    l

    Louis Pullen-Freilich [G]

    1 year ago
    Can you share the code where you are calling that?
    Lucien Guimaraes

    Lucien Guimaraes

    1 year ago
    I'm facing the same issue, were you able to fixed yours ?
    l

    Louis Pullen-Freilich [G]

    1 year ago
    Where are you calling this? It needs to be at the top of your application somewhere, with the things you want to have no elevation overlay for inside the lambda
    Lucien Guimaraes

    Lucien Guimaraes

    1 year ago
    I'm doing something like:
    LocalElevationOverlay.provides(null).apply { ... }
    inside the apply I have a Surface
    but the overlay is still applied
    l

    Louis Pullen-Freilich [G]

    1 year ago
    It needs to be like:
    CompositionLocalProvider(LocalElevationOverlay provides null) {
        Surface(...)
    }
    This will set
    null
    for everything inside the trailing lambda
    Lucien Guimaraes

    Lucien Guimaraes

    1 year ago
    Ok it makes sense 👍
    thanks foor your help, it's working!