I'm having problems loading images in kotlin compose for desktop
It gives the following error:
image.png resource not found
I have the file on the src folder of the project
I'm not sure if the problem is with the code or the way i imported the image, or even if the problem is the still experimental nature of kotlin compose for desktop
val imageModifier = Modifier
.height(240.dp)
.fillMaxWidth()
.clip(RoundedCornerShape(12.dp))
Image(bitmap = useResource("image.png") { loadImageBitmap(it) },
"image",
imageModifier,
contentScale = ContentScale.Fit)