Initial commit: Kotlin Compose Desktop Hello World
This commit is contained in:
12
src/main/kotlin/com/example/kotlindemo/Main.kt
Normal file
12
src/main/kotlin/com/example/kotlindemo/Main.kt
Normal file
@@ -0,0 +1,12 @@
|
||||
package com.example.kotlindemo
|
||||
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.window.Window
|
||||
import androidx.compose.ui.window.application
|
||||
|
||||
fun main() = application {
|
||||
Window(onCloseRequest = ::exitApplication) {
|
||||
Text("Hello World - Kotlin Compose Desktop!")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user