Scrim
fun DialogScope.Scrim(modifier: Modifier = Modifier, scrimColor: Color = Color.Black.copy(0.6f), enter: EnterTransition = AppearInstantly, exit: ExitTransition = DisappearInstantly)
A component that renders a scrim behind the dialog panel.
Parameters
modifier
Modifier to be applied to the scrim.
scrim Color
The color of the scrim.
enter
The enter transition for the scrim.
exit
The exit transition for the scrim.
fun ModalBottomSheetScope.Scrim(modifier: Modifier = Modifier, scrimColor: Color = Color.Black.copy(0.6f), enter: EnterTransition = AppearInstantly, exit: ExitTransition = DisappearInstantly)
A scrim is used to darken the content behind the sheet in order to signify that the rest of the screen is not interactive.
Parameters
modifier
Modifier to be applied to the scrim.
scrim Color
The color of the scrim.
enter
The enter transition for the scrim.
exit
The exit transition for the scrim.