Se7eN
09/17/2020, 11:58 AMProvide(textStyle = TextSyle(...), emphasis = EmphasisAmbient.current.medium) {
...
}
Yann Badoual
09/17/2020, 12:09 PMProvides
takes a vararg, so you could do it, but some "helper provide" functions like ProvidesEmphasis
are doing additional stuff. So you would need to copy/paste some code, which might be changed in a future releaseSe7eN
09/17/2020, 12:19 PMYann Badoual
09/17/2020, 12:21 PMSe7eN
09/17/2020, 12:47 PMLouis Pullen-Freilich [G]
09/17/2020, 12:49 PMProvide
functions will hopefully go away and you can just use Providers
like you would for any other Ambient - but currently we need the Provide
functions as they do more than just setting a value.Se7eN
09/17/2020, 12:55 PM