ImageParams

data class ImageParams(val painter: Painter, val contentDescription: String?, val aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio16by9)

Data class to be used for header images in Card component.

Parameters

painter

Painter used to draw the image.

contentDescription

text used by accessibility services to describe what this image represents. This should always be provided unless this image is used for decorative purposes, and does not represent a meaningful action that a user can take. This text should be localized, such as by using androidx.compose.ui.res.stringResource or similar.

aspectRatio

Aspect ratios provided by Skapa.

Constructors

Link copied to clipboard
constructor(painter: Painter, contentDescription: String?, aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio16by9)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard