And another question: What’s the current way to ad...
# compose
j
And another question: What’s the current way to add Opacity to a text?
dev-03
used
withOpacity
but that was marked as a hack. Is the
Opacity
composable the only way to do it in
dev-04
?
a
I think you need to use
ProvideEmphasis
Copy code
ProvideEmphasis(emphasisLevels.medium) {
    Text(
        text = "someText"
    )
}
a
yes, it is the current replacement for
withOpacity
j
Thanks!
l
we should probably have an opacity DrawModifier, no?
j
I think that an Opacity Modifier would indeed make sense!