Skip to content

clearMemoryCacheWhenDispose is not working with imageCacheName property set #44

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

Closed
givip opened this issue Nov 10, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@givip
Copy link

givip commented Nov 10, 2022

extended_image version 6.3.2

Following configuration doesn't work as intended:

ExtendedImage.network(
    url,
    imageCacheName: 'custom_image_cache_name',
    clearMemoryCacheWhenDispose: true,
)

The reason is that method obtainCacheStatus is not overrided in Extended*ImageProvider classes.

Default obtainCacheStatus implementation always checks status for default ImageCache in PaintingBinding.instance.imageCache

@zmtzawqlp zmtzawqlp added the bug Something isn't working label Nov 11, 2022
@zmtzawqlp zmtzawqlp transferred this issue from fluttercandies/extended_image Nov 11, 2022
zmtzawqlp added a commit that referenced this issue Nov 11, 2022
* clearMemoryCacheWhenDispose is not working with imageCacheName property, obtainCacheStatus method should be overrided.(#44)
@zmtzawqlp
Copy link
Member

please update extended_image_library to 3.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants