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
modifier | The modifier for the top level of the scaffold. |
timeText | The 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. |
containerColor | The container color of the app drawn behind the content , i.e. the color of the background behind the content. |
contentColor | The content color for the application content . |
content | The main content for this application. |
Create your own Component Library
Material Components are meant to be used as is and they do not allow customizations. To build your own Jetpack Compose component library use Compose Unstyled