AppScaffold

Composable Component

AppScaffold is one of the Wear Material3 scaffold components.

Android
@Composable
public fun AppScaffold(
    modifier: Modifier = Modifier,
    timeText: @Composable () -> Unit = { TimeText() },
    containerColor: Color = MaterialTheme.colorScheme.background,
    contentColor: Color = contentColorFor(containerColor),
    content: @Composable BoxScope.() -> Unit,
)

Parameters

modifierThe modifier for the top level of the scaffold.
timeTextThe default time (and potentially status message) to display at the top middle of the screen in this app. When AppScaffold is used in combination with ScreenScaffold, the time text will be scrolled away and shown/hidden according to the scroll state of the screen.
containerColorThe container color of the app drawn behind the content, i.e. the color of the background behind the content.
contentColorThe content color for the application content.
contentThe main content for this application.