diff --git a/templates/desktop-template/src/main/kotlin/main.kt b/templates/desktop-template/src/main/kotlin/main.kt index 1c744cb8b6..5a7386dd8a 100644 --- a/templates/desktop-template/src/main/kotlin/main.kt +++ b/templates/desktop-template/src/main/kotlin/main.kt @@ -12,7 +12,7 @@ import androidx.compose.ui.window.application @Composable @Preview -fun Screen() { +fun App() { var text by remember { mutableStateOf("Hello, World!") } DesktopMaterialTheme { @@ -26,6 +26,6 @@ fun Screen() { fun main() = application { Window(onCloseRequest = ::exitApplication) { - Screen() + App() } }