Image

data class Image(val painter: Painter, val contentScale: ContentScale = ContentScale.Crop, val aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio1by1, val contentDescription: String?) : TextOverlayMediaContainer(source)

The Image container for the Card.

Constructors

Link copied to clipboard
constructor(painter: Painter, contentScale: ContentScale = ContentScale.Crop, aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio1by1, contentDescription: String?)

Properties

Link copied to clipboard

The aspect ratio of the image. Of type SkapaAspectRatio.

Link copied to clipboard

The content description for the image. Of type String.

Link copied to clipboard

The content scale for the image. Of type ContentScale, default is ContentScale.Crop.

Link copied to clipboard

The painter to be used for the image. Of type Painter.