JchuAnimatedBottomSheet
fun <T> JchuAnimatedBottomSheet(value: T?, modifier: Modifier = Modifier, onDismissRequest: () -> Unit = {}, sheetState: SheetState = rememberModalBottomSheetState(), sheetMaxWidth: Dp = BottomSheetDefaults.SheetMaxWidth, shape: Shape = BottomSheetDefaults.ExpandedShape, containerColor: Color = BottomSheetDefaults.ContainerColor, contentColor: Color = contentColorFor(containerColor), tonalElevation: Dp = 0.dp, sheetGesturesEnabled: Boolean = true, scrimColor: Color = BottomSheetDefaults.ScrimColor, dragHandle: @Composable () -> Unit? = { BottomSheetDefaults.DragHandle() }, contentWindowInsets: @Composable () -> WindowInsets = { BottomSheetDefaults.windowInsets }, properties: ModalBottomSheetProperties = ModalBottomSheetDefaults.properties, content: @Composable ColumnScope.(T & Any) -> Unit)
Displays a modal bottom sheet while value is non-null.
The last non-null value is retained while the sheet animates out, preserving the behavior of the component extracted from iNook.
Parameters
value
state that controls visibility and is provided to content.
onDismissRequest
called only for user-driven dismissal requests.