What is the difference between an “Image” and “ImageProvider” in Flutter?

Posted by Editorial Staff | Updated on

An Image is a widget that displays an image.

The ImageProvider instead allows you to identify an image without knowing exactly where is the final asset. The place of the asset will be resolved later when someone wants to read the image.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers