Stefan Oltmann
09/30/2021, 2:32 PMimageResource
and vectorXmlResource
are removed... But this sample code still uses that:
https://github.com/JetBrains/compose-jb/blob/master/examples/widgets-gallery/commo[…]kotlin/org/jetbrains/compose/demo/widgets/platform/Resources.kt
How to replace it?
Edit: Oh, okay... The sample is still on 1.0.0-alpha1 ... But my question is the same ^^Casey Brooks
09/30/2021, 2:37 PMpainterResource()
is the intended replacement. It will internally determine how to load a resource based on the file extensionStefan Oltmann
09/30/2021, 2:38 PMStefan Oltmann
09/30/2021, 2:39 PMStefan Oltmann
09/30/2021, 2:39 PMCasey Brooks
09/30/2021, 2:40 PMStefan Oltmann
09/30/2021, 2:41 PM