-
-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom cache key to support dynamic url images #288
Comments
something like this ? |
@zmtzawqlp ,
|
store key with url+md5 now |
But the url is dynamic, it changes every time it is fetched. Would not hashing it produce a different key every time the image is fetched? |
I don't want to make this library more complex. we store key as md5 now, you can override image provider and make cache logic by yourself. |
i will do this later |
Hi, Firstly, thanks for this feature. However, i am realising that when i have the same cacheKey but different url, the widget blinks every-time there is a rebuild. However when using cache network image, this does not occur. ExtendedImage.network Screen.Recording.2022-01-19.at.10.00.42.PM.movExtendedImage.network( CachedNetworkImage Screen.Recording.2022-01-19.at.10.01.11.PM.movCachedNetworkImage( |
extended_image/lib/src/extended_image.dart Line 747 in 646c3f0
|
just tried gaplessPlayback: false, Screen.Recording.2022-01-20.at.9.36.51.AM.movgaplessPlayback: true, Screen.Recording.2022-01-20.at.9.35.58.AM.mov |
I also realised this is the case only when the url is different.
This code even with |
i didn't get what is that url is dynamic? maybe a simple runnable demo is better |
`import 'dart:math'; import 'package:extended_image/extended_image.dart'; class TestPage extends StatefulWidget { @OverRide class _TestPageState extends State { Screen.Recording.2022-01-20.at.9.56.56.AM.mov |
"https://www.planetware.com/wpimages/2020/03/best-hot-air-balloon-rides-cappadocia-turkey.jpg?index=" + ImageSource is changed every time, i can't find any solution. you can use CacheImageProvider instead of ExtendedImageProvider. i didn't do any thing about the dynamic url |
Please add this feature because it is a vital one for many apps like mine. Thank you.
The text was updated successfully, but these errors were encountered: