mirror of
https://github.com/BetterAndroid/compose-multiplatform-template.git
synced 2025-09-09 20:14:14 +08:00
Initial commit
This commit is contained in:
12
desktopApp/src/desktopMain/kotlin/Main.kt
Normal file
12
desktopApp/src/desktopMain/kotlin/Main.kt
Normal file
@@ -0,0 +1,12 @@
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.window.Window
|
||||
import androidx.compose.ui.window.application
|
||||
import androidx.compose.ui.window.rememberWindowState
|
||||
|
||||
fun main() = application {
|
||||
Window(
|
||||
onCloseRequest = ::exitApplication,
|
||||
title = "__APP_NAME__",
|
||||
state = rememberWindowState(width = 550.dp, height = 450.dp)
|
||||
) { MainView() }
|
||||
}
|
Reference in New Issue
Block a user