App Container
A root container component that provides a common layout structure including a top bar, bottom bar, navigation drawer, and snackbar host. It automatically handles responsive drawer behavior (modal for small screens, permanent for large screens) and centralized loading/error states.
Parameters
The Modifier to be applied to the container.
Displays a centered loading state if true.
Displays an error state if provided.
Callback for the primary action in the error state.
Optional top app bar composable.
Optional search bar composable.
Optional chip group composable.
Optional content for the navigation drawer.
Optional state to control the drawer.
Optional bottom navigation bar composable.
The SnackbarHostState for managing snackbars.
The TopAppBarScrollBehavior to coordinate with the top bar.
The main content of the container, receiving a Modifier with appropriate padding and insets.