ImageCardDefaults

object ImageCardDefaults


Default values used for ImageCard

Summary

Public functions

Color

Calculates the default content color for an ImageCard based on the provided color.

Public properties

Color

The default background color of ImageCard.

PaddingValues

Default content padding used for an ImageCard

Shape

The default shape of ImageCard, which determines its corner radius.

Public functions

contentColor

Added in 1.0.0-alpha20
@Composable
fun contentColor(color: Color = ImageCardDefaults.color): Color

Calculates the default content color for an ImageCard based on the provided color.

Parameters
color: Color = ImageCardDefaults.color

the background color of the image card

Returns
Color

the calculated content color

Public properties

color

val colorColor

The default background color of ImageCard.

contentPadding

val contentPaddingPaddingValues

Default content padding used for an ImageCard

This affects the outermost content padding applied around images and the content container. Note that there is additional padding applied around the content / text / icons inside an image card, this only represents the outer padding for the entire content.

shape

val shapeShape

The default shape of ImageCard, which determines its corner radius.