Skip to main content
The Image widget allows you to display an image in your Flutter app using JSON. It supports images from multiple sources, including assets, files, and network URLs, and provides customization options such as alignment, color, width, height, and fit. To learn more about the equivalent Flutter widgets and their properties, refer to the official Flutter documentation for Image.

Properties

Constructors

StacImage.asset

Creates an image widget that loads from Flutter’s asset bundle.

StacImage.network

Creates an image widget that loads from a network URL.

StacImage.file

Creates an image widget that loads from a local file path.

StacImage (Default)

The default constructor allows you to specify any image source with the imageType property.