Hi :wave: Has anyone found a workaround for the dr...
# compose
o
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
Image from the web 👇
n
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
Huh, interesting, thank you! I will need to take a look at it in more detail.