All Downloads are FREE. Search and download functionalities are using the official Maven repository.

iosMain.com.softartdev.themepref.AlertDialog.kt Maven / Gradle / Ivy

Go to download

Kotlin Multiplatform library for easy switching Dark/Light Material themes on Compose.

There is a newer version: 0.5.5
Show newest version
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,
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy