Reorder params of Modifier.drawBackdrop

This commit is contained in:
Kyant0 committed 2025-09-24 16:05:24 +08:00
1 parent 00e9479e32
commit 11312bb028
19 files changed
+308 -167

No files matched your search

@@ -44,6 +44,7 @@ private val DefaultOnDrawContent: ContentDrawScope.() -> Unit = { drawContent()
fun Modifier.drawBackdrop(
backdrop: Backdrop,
shape: () -> Shape,
effects: (BackdropEffectScope.() -> Unit)? = null,
highlight: (() -> Highlight?)? = DefaultHighlight,
shadow: (() -> Shadow?)? = DefaultShadow,
layer: (GraphicsLayerScope.() -> Unit)? = null,
@@ -51,11 +52,10 @@ fun Modifier.drawBackdrop(
onDrawBehind: (DrawScope.() -> Unit)? = null,
onDrawBackdrop: DrawScope.(drawBackdrop: DrawScope.() -> Unit) -> Unit = DefaultOnDrawBackdrop,
onDrawSurface: (DrawScope.() -> Unit)? = null,
onDrawContent: ContentDrawScope.() -> Unit = DefaultOnDrawContent,
onDrawFront: (DrawScope.() -> Unit)? = null,
drawContent: Boolean = true,
contentEffects: (BackdropEffectScope.() -> Unit)? = null,
effects: (BackdropEffectScope.() -> Unit)? = null
onDrawContent: ContentDrawScope.() -> Unit = DefaultOnDrawContent,
drawContent: Boolean = true
): Modifier {
val shapeProvider = ShapeProvider(shape)
return this