Kwik Dialog
object KwikDialog
This object contains functions that can be used to display dialogs in a Kwik way. BaseDialog is the base dialog that is used by the other dialog functions. ContentDialog is a modular dialog that can be used to display content or confirm actions. ConfirmDialog is a confirm dialog that can be used to confirm actions. GalleryDialog is a dialog that can be used to display a gallery of images or other content that require a full screen view.
Functions
Link copied to clipboard
fun ConfirmDialog(modifier: Modifier = Modifier, open: Boolean, title: String? = null, cancellable: Boolean = true, shape: Shape = MaterialTheme.shapes.medium, onConfirm: () -> Unit, onCancel: () -> Unit = {}, dismiss: () -> Unit, isLoading: Boolean = false, confirmButtonVisible: Boolean = true, confirmColor: Color = MaterialTheme.colorScheme.primary, confirmText: String? = null, cancelText: String? = null, content: @Composable () -> Unit)
A confirm dialog that can be used to confirm actions.
Link copied to clipboard
fun ContentDialog(modifier: Modifier = Modifier, open: Boolean, title: String? = null, cancellable: Boolean = true, withCloseIcon: Boolean = false, shape: Shape = MaterialTheme.shapes.medium, dismiss: () -> Unit, content: @Composable () -> Unit)
A modular dialog that can be used to display content or confirm actions.
Link copied to clipboard
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.