Slide 12
Slide 12 text
Modi
fi
er.blur Android 12 Ҏ্Ͱར༻Մೳ
• RenderEffect Λར༻͍ͯ͠Δ
RenderEffect Android 12 Ҏ্Ͱར༻Մೳ
@Stable
fun Modifier.blur(
radiusX: Dp,
radiusY: Dp,
edgeTreatment: BlurredEdgeTreatment = BlurredEdgeTreatment.Rectangle,
): Modifier {
...
graphicsLayer {
this.renderEffect =
// Only non-zero blur radii are valid BlurEffect parameters
if (horizontalBlurPixels > 0f && verticalBlurPixels > 0f) {
BlurEffect(horizontalBlurPixels, verticalBlurPixels, tileMode)
} else {
null
}