Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

force refetch image #130

Open
EricPHassey opened this issue Dec 4, 2019 · 3 comments
Open

force refetch image #130

EricPHassey opened this issue Dec 4, 2019 · 3 comments
Projects

Comments

@EricPHassey
Copy link

Trying to enableRefresh properly.

I load images to display to user and want a button they can press to re-grab those images from the server. Download and cache them like new.

I've been looking at documentation and I see the enableRefresh property in the TransitionToImage. I have this set to true.

What do I need to do to actually trigger this refresh?

I saw someone else use this: DiskCache().evict(widget.url.hashCode.toString())

Would this be the proper way to pull new images in?

@mchome mchome changed the title enableRefresh properly force refetch image Dec 4, 2019
@mchome mchome added this to INPROGRESS in feature Dec 7, 2019
@mchome mchome closed this as completed in d88f236 Dec 7, 2019
@mchome mchome moved this from INPROGRESS to DONE in feature Dec 7, 2019
@mchome mchome moved this from DONE to BACKLOG in feature Dec 7, 2019
@EricPHassey
Copy link
Author

EricPHassey commented Dec 9, 2019

Thanks for adding this in @mchome . I'm getting a "type GestureDetector is not a subtype of type 'MyRawImage'"

Not sure if I'm doing something wrong.

mchome pushed a commit that referenced this issue Dec 9, 2019
@mchome
Copy link
Owner

mchome commented Dec 9, 2019

My bad, please try v0.6.2.

@EricPHassey
Copy link
Author

Thanks @mchome that fixed the problem, however I'm struggling to use your awesome new feature in my code.

What I'm really looking for is if I press a button "refresh", it would refresh it. Using the longPress interferes with my code, as I already am using a GestureDetector for something else on the image.

Any chance you can have a flag that gets set to refresh it?

@mchome mchome reopened this Dec 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
feature
  
BACKLOG
Development

No branches or pull requests

2 participants