AppShowcase

fun AppShowcase(state: AppShowcaseState, labels: AppShowcaseLabels, icon: ImageVector, onAppClick: (ShowcaseApp) -> Unit, onAppAction: (ShowcaseApp) -> Unit, onViewAll: () -> Unit, onRetry: () -> Unit, modifier: Modifier = Modifier, contentPadding: PaddingValues = PaddingValues(0.dp), onCardsVisibilityChanged: (Boolean) -> Unit = {})(source)

A "more apps" section, the Compose counterpart of Material Next's mnw-app-showcase: a heading with the section's icon and a "View all" action, then the apps as filled cards with their icon, name, category, a full-width description and a tonal store (or open) action.

It owns no data and opens nothing. The host loads state and decides what a tap does; the sample opens an installed app and shows the details sheet of one that is not.

The cards share one width and one height, so the row never jumps. A phone shows them as a carousel that snaps to each card with the next one peeking in; wider windows show as many whole cards side by side as fit at 260 dp or more, still scrolling when there are more.

Parameters

icon

The section's icon, beside the title, as the screen's other sections draw theirs.

onAppClick

A card was tapped.

onAppAction

A card's action button was tapped.

onViewAll

The heading's "View all" action was tapped.

onRetry

The failed state's retry action was tapped.

onCardsVisibilityChanged

Whether at least half the cards row is inside its viewport. Hosts apply lifecycle and exposure-duration policy; the showcase sends no telemetry itself.

contentPadding

Horizontal padding of the row, so cards can scroll to the screen's edges while resting aligned with the content.