https://kotlinlang.org logo
l

Loney Chou

03/10/2023, 4:41 PM
I have the following custom Modifier:
Copy code
fun Modifier.themePadding(
    size: ThemePaddingSize = ThemePaddingSize.Medium
): Modifier = composed {
    val themePadding = LocalThemePadding.current[size]
    padding(themePadding)
}
How can I migrate this to
Modifier.Node
version without using
composed
?
2 Views