https://kotlinlang.org logo
Title
t

Tgo1014

03/22/2022, 9:41 AM
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

f.babic

03/22/2022, 9:46 AM
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

Tgo1014

03/22/2022, 9:47 AM
Where can I find this
clip
property? Right now I’m using
Surface
and passing a
shadowElevation
f

f.babic

03/22/2022, 9:48 AM
Oh it's available in the
Modifier.shadow()
, so in surfaces the behavior might be a bit different
t

Tgo1014

03/22/2022, 9:49 AM
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