https://kotlinlang.org logo
#compose
Title
# compose
m

Mohammad Jahidul Islam

12/16/2021, 5:50 PM
Suppose I got an API result like val apiResult = String? A nullable Image url. Now how can I display the image with coil in composeable. I add apiResult as a perimeter in Image painter value but this display nothing.
y

yschimke

12/16/2021, 6:29 PM
This just works for me. data is Any? - if it's a non null string it loads, if it's null it falls back to
fallback