Kshitij Patil
12/24/2020, 5:08 PMmodifier
as first optional argument. May I know why?
I've some Custom Composables like HeaderText
which used to have first parameter the text itself so I didn't need to write parameter names explicitly, but putting modifier as first parameter makes me lose this power.Adam Powell
12/24/2020, 8:18 PMHeaderText
come first. The intent of the guideline is that you can always supply a modifier to a compose UI function without using named parameters, it always comes right after the last required parameter.Kshitij Patil
12/24/2020, 9:12 PMAdam Powell
12/24/2020, 11:43 PM