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

codeslubber

12/04/2020, 6:07 AM
Image that takes a vectorResource and a modifier no longer compiles in alpha08?
a

André Kindwall

12/04/2020, 8:15 AM
This should work
Copy code
Image(
    imageVector = vectorResource(id = R.drawable.foo),
    modifier = Modifier.padding(8.dp)
)
👍🏻 1
v

Vivek Sharma

12/04/2020, 10:23 AM
VectorResource class converted to ImageVector
👍🏻 1
c

codeslubber

12/04/2020, 2:50 PM
I wish the editor was smarter about cases where the parameter name changed. Thanks.
n

Nader Jawad

12/04/2020, 4:21 PM
We have left typealiases to the old types that point to the new ones and have deprecation warnings with renames. Pressing alt+ enter on it will give the opportunity to replace with the new API
c

codeslubber

12/05/2020, 4:30 AM
That didn’t work for me. I did everything, looked for suggestions, Command-P, etc. Anyway a pretty minor nit. Thanks.
6 Views