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

jvmMain.Modal.jvm.kt Maven / Gradle / Ivy

Go to download

Unstyled, fully accesible Compose Multiplatform components that you can customize to your heart's desire.

There is a newer version: 1.19.1
Show newest version
package com.composables.core

import androidx.compose.ui.window.DialogProperties as ComposeDialogProperties
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.window.Dialog

@Composable
internal actual fun Modal(protectNavBars: Boolean, content: @Composable () -> Unit) {
    Dialog(
        onDismissRequest = {},
        properties = ComposeDialogProperties(
            dismissOnBackPress = false,
            dismissOnClickOutside = false,
            usePlatformInsets = false,
            usePlatformDefaultWidth = false,
            scrimColor = Color.Transparent
        ),
        content = content
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy