Object

CardContainerDefaults

Source set: Android
object CardContainerDefaults

Functions

contentColor

Source set: Android
@Composable
    fun contentColor(
        contentColor: Color = MaterialTheme.colorScheme.onSurface,
        focusedContentColor: Color = contentColor,
        pressedContentColor: Color = focusedContentColor,
    ) =
        CardContainerColors(
            contentColor = contentColor,
            focusedContentColor = focusedContentColor,
            pressedContentColor = pressedContentColor,
        )

Creates CardContainerColors that represents the default content colors used in a CardContainer.

Parameters

contentColor the default content color of this CardContainer.
focusedContentColor the content color of this CardContainer when focused.
pressedContentColor the content color of this CardContainer when pressed.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: