In my Flutter app I’m showing some images, currently when I click on them I can download them but I wanted to change that, so that when I click on the image it opens, does anyone know how I can do this?
An example would be gmail, where you receive the files and when you click on them they open and then you have the option to download
2
Answers
Welcome to StackOverflow.
For displaying a image from a known URL you just need to use
Image.network()
Here is a simple example:
Image Thumb Widget
Image Preview Dialog
Download Code
I used http package for downloads