`LocalElevationOverlay.provides(null)` is not wor...
# compose
s
LocalElevationOverlay.provides(null)
is not working. I still get elevation overlay on my surface. What am I missing?
l
Can you share the code where you are calling that?
l
I'm facing the same issue, were you able to fixed yours ?
l
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
l
I'm doing something like:
LocalElevationOverlay.provides(null).apply { ... }
inside the apply I have a Surface
but the overlay is still applied
l
It needs to be like:
Copy code
CompositionLocalProvider(LocalElevationOverlay provides null) {
    Surface(...)
}
This will set
null
for everything inside the trailing lambda
l
Ok it makes sense 👍
thanks foor your help, it's working!