Comments (5)
FYI, my pubspec.lock says:
cached_network_image:
dependency: "direct main"
description:
name: cached_network_image
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.1"
flutter_cache_manager:
dependency: transitive
description:
name: flutter_cache_manager
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.1"
from flutter_cache_manager.
@renefloor any chance you will have time to look at this? Let me know please, otherwise I'll need to come up with some alternative ... Thanks!!!
from flutter_cache_manager.
Sorry, I am currently very busy and have no time to look into this project. Will probably work on it in September or October again and will rewrite some important parts of the library.
Edit: btw, it could be that this is already fixed in 0.4.1+1, as I worked on something related to the ImmutableMap for the headers.
from flutter_cache_manager.
Ok, thanks for info.
from flutter_cache_manager.
Hi there!
So the problem is here:
https://github.com/renefloor/flutter_cache_manager/blob/2adfc0f73c9f2e145c36cbf24fe1d6fc75296649/lib/flutter_cache_manager.dart#L268
You are modifying header map which was supplied to you as an argument - that's probably not a good idea anyway ... I fixed it in a straightforward way. Here:
... which I changed to:
if (headers == null) {
headers = new Map();
} else {
headers = new Map.from(headers); // new statement
}
It seems to be working now.
from flutter_cache_manager.
Related Issues (20)
- Connection closed while receiving data HOT 1
- Getting a DatabaseException on startup: (database is locked (code 5 SQLITE_BUSY[5]))
- [Feature request] override extension file HOT 1
- iOS Consume more memory than Android
- Exception after clearing cache, the code tries to delete not existing image file
- Get & list cached files
- CacheManager attempts to create file named guid.* on Windows (full example included and clear description)
- Cached file should be removed on 404, and error should be added to Stream even if a cached file exists
- If image (DOES NOT EXIST) AND (maxWidth/maxHeight) ARE set, the stream never closes
- How to customize the file name
- How can I get the total size of the cache or get the cache path? HOT 9
- Windows fail
- Auto Extend the cached file's longevity if the user views it before it expired.
- The cached files aren't being removed after the stale duration is over! HOT 1
- ClientException: Redirect limit exceeded
- JsonCacheInfoRepository: FormatException: Unexpected end of input (at character 1) ^
- Privacy manifest file for iOS is missing HOT 2
- Stale period not working properly
- Add option to not use SQLite and default to that HOT 3
- v3.3.1 DefaultCacheManager().getSingleFile(url) throws and pauses the app in debug mode, rather than let the error be caught
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_cache_manager.