How can I change the shape of the shadow that show...
# compose
r
How can I change the shape of the shadow that shows up when
.clickable
of modifier is triggered?
2
I have a clickable icon that shows the shadow / elevation on click. It looks bad because it’s just a rectangle that should be changed to circle.
f
You can clip it using
clip(shape)
modifier
Copy code
Modifier
    .clip(CircleShape)
    .background(/* add background if you want */)
    .clickable { /* ... */ },
r
Thank You!