What is the Image widget?

Why Interviewers Ask This

Foundational questions like this help interviewers calibrate the rest of the interview. A confident, accurate answer signals that you have solid Flutter basics — a prerequisite for any developer role.

Answer

The Image widget displays an image in Flutter. It has several named constructors for different sources: Image.network(url) loads from the internet, Image.asset(path) loads from the app's assets folder, Image.file(file) loads from the device filesystem, and Image.memory(bytes) loads from raw bytes. The fit property (BoxFit) controls how the image is scaled within its bounds.

Common Mistake

Don't just define the term — demonstrate that you understand when to use it and when not to. Showing awareness of trade-offs is what separates average from strong Flutter candidates.