Join Slack
Powered by
Hi :wave: Has anyone found a workaround for the dr...
# compose
o
Oleksandr Balan
10/02/2025, 8:26 AM
Hi 👋 Has anyone found a workaround for the drop shadow clipping issue when using the new customizable shadow APIs (K v1.9.0)? The clipping is noticeable even with small radius, and I also see it in the example image on the web.
https://www.jetbrains.com/help/kotlin-multiplatform-dev/whats-new-compose-190.html#customizable-shadows
👀 1
Oleksandr Balan
10/02/2025, 8:28 AM
Image from the web 👇
n
Nader Jawad
11/22/2025, 6:39 PM
I think the compose multiplatform implementation for the Shadow APIs doesn't convert the radius to a sigma value before calling into the underlying skia code. You might be able to work around this by computing the sigma yourself and passing it in. Internally android converts the radius to sigma values using this function here
https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/libs/hwui/jni/MaskFilter.cpp;drc=61197364367c9e404c7da6900658f1b16c42d0da;l=16?q=nativeConstructor%20BlurMaskFilter
o
Oleksandr Balan
11/26/2025, 8:04 AM
Huh, interesting, thank you! I will need to take a look at it in more detail.
3
Views
Open in Slack
Previous
Next