It seems that `@Preview` is not able to preview dr...
# compose
l
It seems that 
@Preview
 is not able to preview drawables. Can s.o. confirm that? Is this a known bug?
Copy code
ListItem(
        text = { Text("") },
        icon = { Icon(vectorResource(id = iconRes)) }, // can not be previewed
    )
While 
iconRes
 is a png file. EDIT: Sorry, wasn't aware of
imageResource
. Now it works.
✔️ 1
n
In the latest alpha we introduced the
painterResource
API that opaquely loads pngs or vector assets and returns a Painter that can be used as input to the Icon composable