Hello everyone, I’d like to ask about the best pra...
# compose
u
Hello everyone, I’d like to ask about the best practices for reusing Compose Modifiers. What are the differences between
@Composable Modifier
,
composed
factory, and
Modifier Node
? I still don’t quite understand the distinctions among these three, and even feel that their final effects are the same.
c

https://www.youtube.com/watch?v=BjGX2RftXsU&ab_channel=AndroidDevelopers

might give some insights.
TL;DR: •
@Composable Modifier
for reusing existing modifiers. •
composed
, deprecated due to performance reasons. •
Modifier.Node
recommended way to create custom modifiers
👍 3