Google is committed to advancing racial equity for Black communities. See how.

ScaffoldState

@Stable class ScaffoldState
kotlin.Any
   ↳ androidx.compose.material.ScaffoldState

State for Scaffold composable component.

Contains basic screen state, e.g. Drawer configuration, as well as sizes of components after layout has happened

Summary

Public constructors
<init>(drawerState: DrawerState, snackbarHostState: SnackbarHostState)

State for Scaffold composable component.

Properties
DrawerState

the drawer state

SnackbarHostState

instance of SnackbarHostState to be used to show Snackbars inside of the Scaffold

Public constructors

<init>

ScaffoldState(
    drawerState: DrawerState,
    snackbarHostState: SnackbarHostState)

State for Scaffold composable component.

Contains basic screen state, e.g. Drawer configuration, as well as sizes of components after layout has happened

Parameters
drawerState: DrawerState the drawer state
snackbarHostState: SnackbarHostState instance of SnackbarHostState to be used to show Snackbars inside of the Scaffold

Properties

drawerState

val drawerState: DrawerState

the drawer state

snackbarHostState

val snackbarHostState: SnackbarHostState

instance of SnackbarHostState to be used to show Snackbars inside of the Scaffold