I'd like to use the Palette API to generate the do...
# compose
z
I'd like to use the Palette API to generate the dominant color from a remote Image inside a ViewModel. I am a bit confused as to how to retrieve the Bitmap when using an image loading library such as Coil that's included into Accompanist. Anyone got ideas? FWIW, this is what my image loader code looks like right now
Seems like I need a drawable, because I can retrieve the Bitmap from that. Just don’t know how
z
Just what I was looking for, thank you
c
Obviously tailor that code to your needs, you don’t need to do 💯% the same thing