You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A feature I need is exposing download progress to applications. While for smaller files this isn't an issue, my use-case includes absurdly large images, animated GIFs, and videos. I'd like to be able to show download progress in my UI without sidestepping the cache, since not having to download a big file twice is kinda the whole point.
What should the API look like? It should be accessible from flutter_cache_manager as well as flutter_cached_network_image.
I'm thinking usage in applications could look like:
AFAICT with a StreamedResponse you aren't guaranteed to know the size of the file, so returning a percent complete in the callback isn't always possible. CacheManager.getFile could have a similar callback added to it that gets linked up with the CachedNetworkImage.
Actually while this would still be nice to have, I think an extension of getFileIfCached could be more immediately useful so I can use Android's DownloadManager API for showing download progress. Will open issue/PR for that once it's ready
A feature I need is exposing download progress to applications. While for smaller files this isn't an issue, my use-case includes absurdly large images, animated GIFs, and videos. I'd like to be able to show download progress in my UI without sidestepping the cache, since not having to download a big file twice is kinda the whole point.
What should the API look like? It should be accessible from flutter_cache_manager as well as flutter_cached_network_image.
I'm thinking usage in applications could look like:
AFAICT with a
StreamedResponse
you aren't guaranteed to know the size of the file, so returning a percent complete in the callback isn't always possible.CacheManager.getFile
could have a similar callback added to it that gets linked up with theCachedNetworkImage
.I've started changing flutter_cache_manager so it'll be possible to count the bytes as they come (
StreamedResponse
andawait for
).The text was updated successfully, but these errors were encountered: