MohamedRejeb / Calf

Calf is a library that allows you to easily create adaptive UIs and access platform specific APIs with Compose Multiplatform (Adaptive UI, File Picker, WebView, Permissions...).
https://mohamedrejeb.github.io/Calf/
Apache License 2.0
709 stars 32 forks source link

Add a Coil utils module and a KmpFileFetcher #84

Closed iruizmar closed 2 months ago

iruizmar commented 2 months ago

Coil is a well-known network image loading library use by many people. In Coil, you can extend the image loading pipeline by adding, among others, custom fetchers that will express how to download an image given any model.

This PR adds a custom Coil Fetcher to be able to pass a KmpFile to Coil and it will display the local image gracefully.

iruizmar commented 2 months ago

Should we document this somewhere? Otherwise, it'll be hard to find.

MohamedRejeb commented 3 weeks ago

Yes this should be documented here and used in the sample as well: https://github.com/MohamedRejeb/Calf/blob/main/docs/filepicker.md