Scanbot Scaffold
Material Design standard bottom sheet.
Standard bottom sheets co-exist with the screen’s main UI region and allow for simultaneously viewing and interacting with both regions. They are commonly used to keep a feature or secondary content visible on screen when content in main UI region is frequently scrolled or panned.
This component provides an API to put together several material components to construct your screen. For a similar component which implements the basic material design layout strategy with app bars, floating action buttons and navigation drawers, use the standard Scaffold. For similar component that uses a backdrop as the centerpiece of the screen, use BackdropScaffold.
A simple example of a bottom sheet scaffold looks like this:
Parameters
The content of the bottom sheet.
An optional Modifier for the root of the scaffold.
The state of the scaffold.
An optional top app bar.
The composable hosting the snackbars shown inside the scaffold.
An optional floating action button.
The position of the floating action button.
Whether the bottom sheet can be interacted with by gestures.
The shape of the bottom sheet.
The elevation of the bottom sheet.
The background color of the bottom sheet.
The preferred content color provided by the bottom sheet to its children. Defaults to the matching content color for sheetBackgroundColor, or if that is not a color from the theme, this will keep the same content color set above the bottom sheet.
The height of the bottom sheet when it is collapsed. If the pick height equals the sheet's full height, the sheet will only have a collapsed state.
The content of the drawer sheet.
Whether the drawer sheet can be interacted with by gestures.
The shape of the drawer sheet.
The elevation of the drawer sheet.
The background color of the drawer sheet.
The preferred content color provided by the drawer sheet to its children. Defaults to the matching content color for drawerBackgroundColor, or if that is not a color from the theme, this will keep the same content color set above the drawer sheet.
The color of the scrim that is applied when the drawer is open.
The main content of the screen. You should use the provided PaddingValues to properly offset the content, so that it is not obstructed by the bottom sheet when collapsed.