CardDefaults
public static class CardDefaults
Summary
Public fields |
|
|---|---|
static @NonNull CardDefaults |
Public methods |
|
|---|---|
final @NonNull CardColors |
filledCardColors(@NonNull MaterialScope receiver)
|
final @NonNull CardColors |
filledTonalCardColors(@NonNull MaterialScope receiver)
|
final @NonNull CardColors |
filledVariantCardColors(@NonNull MaterialScope receiver)Alternative |
final @NonNull CardColors |
imageBackgroundCardColors(@NonNull MaterialScope receiver)Alternative |
Public fields
Public methods
filledCardColors
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 from the given MaterialScope's ColorScheme.
filledTonalCardColors
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 from the given MaterialScope's ColorScheme.
filledVariantCardColors
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 from the given MaterialScope's ColorScheme.
imageBackgroundCardColors
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 from the given MaterialScope's ColorScheme.