how would a user add an extra param to the Text me...
# compose
j
how would a user add an extra param to the Text method?
👍 1
s
Can you elaborate what you mean by extra param for Text?
j
I was thinking about a use case similar to the button snippet I linked here: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1558735510061000, Making it so you can pre-define some set of attributes for Text and apply all of them with a single argument instead of several. ie my app may have many remove buttons and all of them have: caps, red text, 26.dp, ripple background.
s
Got it thanks.
Being able to flow/feed a set of properties to a node and its children in a tree is an interesting problem, for which i don't have an elegant answer, yet.