Image that takes a vectorResource and a modifier n...
# compose
c
Image that takes a vectorResource and a modifier no longer compiles in alpha08?
a
This should work
Copy code
Image(
    imageVector = vectorResource(id = R.drawable.foo),
    modifier = Modifier.padding(8.dp)
)
👍🏻 1
v
VectorResource class converted to ImageVector
👍🏻 1
c
I wish the editor was smarter about cases where the parameter name changed. Thanks.
n
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
That didn’t work for me. I did everything, looked for suggestions, Command-P, etc. Anyway a pretty minor nit. Thanks.