Pavle Joksovic
12/22/2021, 3:07 PM/Users/joksovic/ic_re_center_dark.svg
to a painterResource
I get
Exception in thread "AWT-EventQueue-0 @coroutine#12" java.lang.IllegalArgumentException: Resource /Users/joksovic/ic_re_center_dark.svg not found
what am I doing wrong?spierce7
12/22/2021, 3:20 PMic_re_center_dark.svg
in a place where it doesn’t exist.
I imagine that it’s not inside of /Users/joksovic/ic_re_center_dark.svg
right? It should be in your compose resources folder or inside gradle resources folder.Pavle Joksovic
12/22/2021, 3:21 PMpainter = loadSvgPainter(inputStream = File(pathToFile).inputStream(), density = LocalDensity.current),
spierce7
12/22/2021, 3:22 PMpathToFile
?Pavle Joksovic
12/22/2021, 3:22 PM/Users/joksovic/ic_re_center_dark.svg
but whatever you passPavle Joksovic
12/22/2021, 3:23 PMMichael Paus
12/22/2021, 4:49 PMPavle Joksovic
12/23/2021, 10:29 AM