Complete the code to display an image from assets using the Image widget.
Image.[1]('assets/picture.png')
Use Image.asset to load images bundled with your app.
Complete the code to display an image from the internet using the Image widget.
Image.[1]('https://example.com/image.png')
Use Image.network to load images from a web URL.
Fix the error in the code to correctly load an asset image.
Image.[1]('images/photo.png')
The image is local, so Image.asset is the correct constructor.
Fill both blanks to create an Image widget that loads a network image with a fixed width.
Image.[1]('https://picsum.photos/200', width: [2])
Use Image.network for internet images and set width as a double value like 100.0.
Fill all three blanks to create an Image widget that loads an asset image with height and fit properties.
Image.[1]('assets/logo.png', height: [2], fit: BoxFit.[3])
Use Image.asset for local images, set height as a double, and use BoxFit.cover to fill the space nicely.