📱 Flutter
Beginner
What is the Image widget?
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.