Getting errors at compile time is what you’d expect right?
p
Prateek Kumar
05/16/2023, 8:59 AM
But this code should work in Android as well , Right?
Because i did use some Desktop specific things like painterResource(res: String)
But they work without fail.
Or am i missing something
t
Timo Drick
05/25/2023, 8:08 AM
The problem is that in android they are using a different approach for managing resources. So you need to use a different imagePainter instead.
Not sure what you goal is. Because in Android the resources are often also scaled depending on device pixel density.