I'm getting weird shadow for dark theme, any ideas...
# compose
p
I'm getting weird shadow for dark theme, any ideas?
Copy code
Column(modifier = Modifier.padding(16.dp)) {
        Surface(
            elevation = 10.dp,
            modifier = Modifier.fillMaxWidth(),
        ) {
            Text(text = "Test")
        }
    }
a
the shadow I think is a natural consequence of using elevation!
p
I know, I want shadow 🙂
just dark theme shadow is weird, dunno
l
What do you mean by ‘shadow’, do you mean the elevation overlay? https://material.io/design/color/dark-theme.html#properties Check the elevation section
p
no, not the surface overlay (tough I'd prefer to avoid it, not sure how yet)
l
You can use
LocalElevationOverlay
, and provide
null
👍 1
The shadow itself seems weird, is there any transparency involved here?
p
not that I'm aware of
the shadow gets fixed, after I resize window of emulator to be larger, weird
thanks for helping!