I've created an app that downloads a bunch of information for off-line use, much of which are photos. In the app, I'd like to use a widget that allows me to have a pan/zoom effect, but the ones I've found don't seem to play well with Image.file() and instead use ImageProviders.
For example, Photo_View only accepts AssetImage, and NetworkImage images which both inherit from ImageProvider, while Image.file() inherits from Diagnosticable. All of the packages that I've seen operate in basically the same way.
So, my question is how to convert Image.file() data into a ImageProvider format.
Instead of
Image.file()useFileImage()that is type ofImageProvider.From Doc:
I think you can also use
ExactAssetImagewith Image File path(ex:image.path) but it should be inAssetBundle. Here what doc says about that:read more.