iosMain.com.softartdev.themepref.AlertDialog.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of material-theme-prefs Show documentation
Show all versions of material-theme-prefs Show documentation
Kotlin Multiplatform library for easy switching Dark/Light Material themes on Compose.
package com.softartdev.themepref
import androidx.compose.material.AlertDialog
import androidx.compose.runtime.Composable
@Composable
actual fun AlertDialog(
title: @Composable (() -> Unit)?,
text: @Composable (() -> Unit)?,
confirmButton: @Composable () -> Unit,
dismissButton: @Composable (() -> Unit)?,
onDismissRequest: () -> Unit
) = AlertDialog(
title = title,
text = text,
confirmButton = confirmButton,
dismissButton = dismissButton,
onDismissRequest = onDismissRequest
)
@Composable
actual fun AlertDialog(
title: @Composable (() -> Unit)?,
text: @Composable (() -> Unit)?,
buttons: @Composable () -> Unit,
onDismissRequest: () -> Unit
) = AlertDialog(
title = title,
text = text,
buttons = buttons,
onDismissRequest = onDismissRequest,
)