CardDefaults
object CardDefaults
Summary
Public functions |
|
|---|---|
CardColors |
|
CardColors |
|
CardColors |
Alternative |
CardColors |
Alternative |
Public functions
filledCardColors
fun MaterialScope.filledCardColors(): CardColors
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
fun MaterialScope.filledTonalCardColors(): CardColors
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
fun MaterialScope.filledVariantCardColors(): CardColors
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
fun MaterialScope.imageBackgroundCardColors(): CardColors
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.