Convert Image URL to File format in Flutter

Gulshan Yadav
2 min readMay 1, 2020

So, in this article, I will be showing you how you can convert an image URL into a File format in Flutter.

For this purpose, we need to add these two dependencies in pubspec.yaml file.

http: ^0.12.1path_provider: ^1.6.7

http will be used for calling API requests to image URL for getting image bytes.

--

--

Gulshan Yadav

Freelancer - Flutter | Android | Blockchain | NodeJs | Technical Writer | Open Source Contributor | LinkedIn — https://www.linkedin.com/in/mrgulshanyadav