Composables UI is out: our new component library for Compose Multiplatform ->
Compose Component

AppCardContent

Lays out the content of an AppCard with support for an app icon, app name, time, title, and body content.

AppCardContent

Source set: Android
@Composable
public fun AppCardContent(
    appName: @Composable RowScope.() -> Unit,
    title: @Composable RowScope.() -> Unit,
    modifier: Modifier = Modifier,
    colors: CardColors = CardDefaults.cardColors(),
    appImage: @Composable (RowScope.() -> Unit)? = null,
    time: @Composable (RowScope.() -> Unit)? = null,
    content: @Composable ColumnScope.() -> Unit,
)

Parameters

appName A slot for providing the app name.
title A slot for providing the card's title.
modifier Modifier to be applied to the app card content layout.
colors CardColors that will be used to resolve the content, title, and app name colors in different states. See CardDefaults.cardColors.
appImage A slot for providing the app icon.
time A slot for providing the time.
content A slot for providing the card's body content.

Last updated: