qdsfdhvh / compose-imageloader

Compose Image library for Kotlin Multiplatform.

Home Page:https://qdsfdhvh.github.io/compose-imageloader/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inability to use library due to lacking documentation

Deaths-Door opened this issue · comments

The documentation doesn't show how to set an image. I've tried ChatGTP solutions and other solutions like below (which has worked finally) but it does work when given a URL to the image, only works when the below type of data is given.Hence it would be useful if doc showed how to create an Image using this library.

 CompositionLocalProvider{
        val url = "data:image/jpeg;base64,/9j/4"
            val painter = rememberAsyncImagePainter(url)
            Image(painter, null)
        }