Object

CardContainerDefaults

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
object CardContainerDefaults

Functions

contentColor

@ReadOnlyComposable
    @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.