public static class CardDefaults


Summary

Public fields

static @NonNull CardDefaults

Public methods

final @NonNull CardColors

CardColors for the high-emphasis card representing the primary, most important or most common action on a screen.

final @NonNull CardColors

CardColors for the medium-emphasis card.

final @NonNull CardColors

Alternative CardColors for the high-emphasis card.

final @NonNull CardColors

Alternative CardColors for the card with backgroundImage as a background.

Public fields

INSTANCE

Added in 1.3.0-alpha06
public static @NonNull CardDefaults INSTANCE

Public methods

filledCardColors

Added in 1.3.0-alpha06
public final @NonNull CardColors filledCardColors(@NonNull MaterialScope receiver)

CardColors for the high-emphasis card representing the primary, most important or most common action on a screen.

These colors are using ColorScheme.primary for background color and ColorScheme.onPrimary for content colors.

filledTonalCardColors

Added in 1.3.0-alpha06
public final @NonNull CardColors filledTonalCardColors(@NonNull MaterialScope receiver)

CardColors for the medium-emphasis card.

These colors are using ColorScheme.surfaceContainer for background color and ColorScheme.onSurface and ColorScheme.onSurfaceVariant for content colors.

filledVariantCardColors

Added in 1.3.0-alpha06
public final @NonNull CardColors filledVariantCardColors(@NonNull MaterialScope receiver)

Alternative CardColors for the high-emphasis card.

These colors are using ColorScheme.primaryContainer for background color and ColorScheme.primaryContainer for content colors.

imageBackgroundCardColors

Added in 1.3.0-alpha06
public final @NonNull CardColors imageBackgroundCardColors(@NonNull MaterialScope receiver)

Alternative CardColors for the card with backgroundImage as a background.

These colors are using ColorScheme.onBackground for content colors.