https://kotlinlang.org logo
#compose
Title
# compose
n

Nat Strangerweather

10/31/2020, 9:41 AM
Hello! Since updating to alpha_06, I have the following errors and I can't find any solution in the release notes. I see that "backgroundColor" was replaced with "colors" for the Button, but I don't know how to implement this. Does anyone know what I need to use in the three snippets? Cheers!
s

Se7eN

10/31/2020, 10:02 AM
For
Icon
, change the import from
androidx.compose.foundation.Icon
to
androidx.compose.material.Icon
For Button colors:
Copy code
Button(
    ...,
    colors = ButtonConstants.defaultButtonColors(backgroundColor = backgroundColor)
)
n

Nat Strangerweather

10/31/2020, 10:07 AM
Thanks, that's great! 😊
👍 1
a

alorma

10/31/2020, 12:28 PM
It's a bit verbose now...
3 Views