Gallery Dialog
fun GalleryDialog(open: Boolean, title: String? = null, cancellable: Boolean = true, dismiss: () -> Unit, content: @Composable () -> Unit)
A dialog that can be used to display a gallery of images or other content that require a full screen view.
Parameters
open
Whether the dialog should be displayed.
title
The title of the dialog.
cancellable
Whether the dialog can be dismissed by clicking outside of it.
dismiss
The function to be called when the dialog is dismissed.
content
The content of the dialog.
Example usage:
GalleryDialog(
open = open,
title = "Gallery",
dismiss = {
// Dismiss action
},
content = {
// Your content
}
)
Content copied to clipboard