compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

painterResource not working with "\" in path

Open flash1512 opened this issue 3 years ago • 1 comments

if we pass path argument in painterResource like drawable\image.svg it throws an exception that resource not found . But if we pass drawable/image.svg it will work. In Windows classes like Path or File return path string with \ in path instead of /. We should always do workarounds like replace("\\", "/"). It's inconvenient

flash1512 avatar Dec 30 '21 23:12 flash1512

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Aug 26 '24 16:08 okushnikov