Advertisement
Artyom_Kopan

Main.kt

May 30th, 2022
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.53 KB | None | 0 0
  1. import androidx.compose.runtime.remember
  2. import androidx.compose.ui.unit.dp
  3. import androidx.compose.ui.window.Window
  4. import androidx.compose.ui.window.application
  5. import androidx.compose.ui.window.rememberWindowState
  6. import view.View
  7.  
  8. fun main() = application {
  9.     Window(
  10.         onCloseRequest = ::exitApplication,
  11.         title = "Крестики-нолики",
  12.         state = rememberWindowState(width = 800.dp, height = 1000.dp)
  13.     ) {
  14.         val viewModel = remember { ViewModel() }
  15.         View(viewModel)
  16.     }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement