My elevation shadows are being cut, any way I can ...
# compose
t
My elevation shadows are being cut, any way I can fix this? Just for a bit of context, this is not a default
FAB
component, but a custom one because I want to transform it into a bottom sheet
f
Try passing in
clip = false
and/or a different shape for the shadow, as it might align to a rectangle now, but you could pass in a squircle/rounded corner rect
t
Where can I find this
clip
property? Right now I’m using
Surface
and passing a
shadowElevation
f
Oh it's available in the
Modifier.shadow()
, so in surfaces the behavior might be a bit different
t
Let me try to use the modifier instead
No luck, it still clips 😕
😢 1
The issue was using
Modifier.animateContentSize()
, removing it makes everything works fine
👍 4