Image

An Image widget allows displaying an image.

You can load it from a URL:

Image.network(
// URL
   "https://img.freepik.com/vector-gratis/fondo-abstracto-colorido_23-2148449762.jpg",
// Set height
    height: double.infinity,
// To fit the container above without unforming
    fit: BoxFit.cover,
);

Last updated