Scaffold
Scaffold implements the basic material design visual layout structure.
This component provides API to put together several material components to construct your screen, by ensuring proper layout strategy for them and collecting necessary data so these components will work together correctly.
Parameters
the Modifier to be applied to this scaffold
top app bar of the screen, typically a TopAppBar
bottom bar of the screen, typically a NavigationBar
component to host Snackbars that are pushed to be shown via SnackbarHostState.showSnackbar, typically a SnackbarHost
Main action button of the screen, typically a FloatingActionButton
position of the FAB on the screen. See FabPosition.
the color used for the background of this scaffold. Use Color.Transparent to have no color.
the preferred color for content inside this scaffold. Defaults to either the matching content color for containerColor, or to the current LocalContentColor if containerColor is not a color from the theme.
content of the screen. The lambda receives a PaddingValues that should be applied to the content root via Modifier.padding and Modifier.consumeWindowInsets to properly offset top and bottom bars. If using Modifier.verticalScroll, apply this modifier to the child of the scroll, and not on the scroll itself.