loadImageResource is deprecated since alpha12.
What’s the proper replacement? Does painterResource load the image in background?
n
Nader Jawad
02/23/2021, 5:05 PM
painterResource does not load asynchronously but the async resource methods we had previously in compose were a temporary solution until we were able to support coroutines in Compose
Nader Jawad
02/23/2021, 5:06 PM
However painterResource has the added benefit of loading rasterized and vector based graphics without having to know the type in advance based on the resource id. This provides similar behavior to Context.getDrawable