Baseflow / flutter_cached_network_image

Download, cache and show images in a flutter app
https://baseflow.com
2.45k stars 656 forks source link

Enable use of `http` or `dio` library for making network requests #868

Open ueman opened 1 year ago

ueman commented 1 year ago

🚀 Feature Requests

I would like to use this package with either http or dio.

Contextualize the feature

This would enable me to

Describe the feature

I would like to be able to pass my own http.Client or Dio instance, which is then used to make the network request.

Platforms affected (mark all that apply)

martijn00 commented 1 year ago

@ueman would you be able to make a PR for this?

haashem commented 5 months ago

There is a package for that, just needed to create a cache manager which uses a custom http file service:

https://github.com/xfans/flutter_cache_manager_dio