khairil.ushan
03/30/2024, 9:39 AMImage(
painter = painterResource("mylogo.png"),
contentDescription = null
)
It has been working just fine, until I tried to import this library (peekaboo : https://github.com/onseok/peekaboo) . And above line start complaining, and from i see the signature of painterResources has changed to requires DrawableResources type instead of just String. From what i understand this seems like the new way of accessing assets, I tried to create composeResources
folder and move my pngs there, but no Res
type generated for me. 😞
And the other problem is, I am currently using another library that has the old way of accessing resources (painterResource(String)
). Any suggestions how to workaround this issue?Vlad Mircan
03/30/2024, 10:19 AMcomposeMultiplatform
1.6.0
or above?khairil.ushan
03/30/2024, 10:20 AMkhairil.ushan
03/30/2024, 10:21 AMkhairil.ushan
03/30/2024, 10:22 AMVlad Mircan
03/30/2024, 10:23 AM1.6.0
or 1.6.1
to have the DrawableResource
be generatedkhairil.ushan
03/30/2024, 10:25 AMVlad Mircan
03/30/2024, 10:28 AMdrawable:mylogo.png
khairil.ushan
03/30/2024, 10:29 AMkhairil.ushan
03/30/2024, 10:54 AMVlad Mircan
03/30/2024, 10:55 AMkhairil.ushan
03/30/2024, 10:56 AMVlad Mircan
03/30/2024, 10:57 AM