Scaffold
A Scaffold component with Miuix style.
This implements the basic miuix design visual layout structure.
To show a Snackbar, use SnackbarHostState.showSnackbar.
Parameters
the Modifier to be applied to this scaffold.
top app bar of the screen.
bottom bar of the screen.
floating action button of the screen.
position of the floating action button.
floating toolbar of the screen.
position of the floating toolbar.
component to host Snackbars that are pushed to be shown via SnackbarHostState.showSnackbar, typically a SnackbarHost.
component to host overlay dropdowns &OverlayDialogs that are pushed to be show, typically a MiuixPopupHost.
the color used for the background of this scaffold. Use Color.Transparent to have no color.
window insets to be passed to content slot via PaddingValues params. Scaffold will take the insets into account from the top/bottom only if the topBar/ bottomBar are not present, as the scaffold expect topBar/bottomBar to handle insets instead. Any insets consumed by other insets padding modifiers or consumeWindowInsets on a parent layout will be excluded from contentWindowInsets.
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.