Image

data class Image(val painter: Painter, val contentDescription: String?, val aspectRatio: SkapaAspectRatio? = SkapaAspectRatio.Ratio16by9, val contentScale: ContentScale = ContentScale.Crop, val modifier: Modifier = Modifier) : MediaContainer(source)

The Image container for the Card.

Constructors

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

Properties

Link copied to clipboard

Optional 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 of the image. Of type ContentScale. Default is ContentScale.Crop.

Link copied to clipboard

The modifier to be applied to the image. Of type Modifier.

Link copied to clipboard

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