How can I set a shadow/elevation on a GlideImage? ...
# compose
a
How can I set a shadow/elevation on a GlideImage? The following is working as expected:
Copy code
Surface(elevation = 5.dp, shape = CircleShape, modifier = Modifier.size(200.dp)) {}
But I do not see any shadow with this code:
Copy code
Surface(elevation = 5.dp, shape = CircleShape, modifier = Modifier.size(200.dp)) {
    GlideImage(
        data = contact.avatarURL ?: "",
        contentDescription = "",
    )
}
What am I missing?
c
My guess is that there's no space/padding around
Surface
for the shadow to be visible.
a
Even using a
CircleShape
clip? I should see it at least in corners, no? Also I do see the shadow when the
Surface
does not contain anything...