CreateDialog
@Composable
Content copied to clipboard
Setup a composable that will be displayed in the Dialog with the backStack functionality.
Parameters
key
Key associated with the dialog usually a data class.
dialogProperties
DialogProperties to customize dialog.
handleOnDismissRequest
Intercept whether dismiss request is handled or not. Returning true
will considered as request being handled & will not dismiss the dialog.
content
The composable body of the dialog which supplies two arguments. dialogRoute
which is passed throw showDialog() &dismiss
lambda which can be called to dismiss current dialog.