Hey newbie question! I'm trying to load a local S...
# compose-desktop
r
Hey newbie question! I'm trying to load a local SVG file. I've copy pasted the svg to the resource folder of the project. Svg name is: "_import.sv_g" Then I'm calling it in the code like this
Copy code
Icon(painter = painterResource("import.svg"), contentDescription = null)
It throws me an error because file is not found. What am I doing wrong and what is the correct way to get this file path?
Solved bloodtrail
Copy code
Icon(painter = painterResource("/import.svg"), contentDescription = null)
a
🥳 devil is in the details