i am planning to rework Modifier.composed to Node ...
# compose
m
i am planning to rework Modifier.composed to Node api. Is there any examples / migration available ?
s
Apparently there isn’t something official out as of right now, but we can possibly hope for something to come out in the future https://kotlinlang.slack.com/archives/CJLTWPH7S/p1692995109407449?thread_ts=1692956093.874709&cid=CJLTWPH7S. And I haven’t seen any article or something like that from the community either myself 👀
👍 1
m
thanks for the samples. trivial examples are not that hard to figure out. It seems ‘composed’ ones are the hardest, because they require composition of values, which there is no sample about
s
Yeap, I’d look into https://cs.android.com/ and try and see how they migrated the existing composables, like clickable or whatever. I’m sure you’ll find plenty of example there. Of course that’s not the best experience, but it’s probably the best thing to do right now.
p
Pay attention to documentation and samples