mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
Small tweaks.
This commit is contained in:
@@ -72,9 +72,10 @@ import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.unit.IntSize
|
||||
import androidx.compose.ui.unit.dp
|
||||
|
||||
fun main() = Window {
|
||||
fun main() = Window(title = "Compose for Desktop", size = IntSize(300, 300)) {
|
||||
var count = remember { mutableStateOf(0) }
|
||||
MaterialTheme {
|
||||
Column(Modifier.fillMaxSize(), Arrangement.spacedBy(5.dp)) {
|
||||
@@ -93,13 +94,15 @@ fun main() = Window {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
Open `build.gradle.kts` as a project in IDEA.
|
||||
|
||||

|
||||
|
||||
|
||||
After downloading Compose for Desktop dependencies from Maven repositories your new project is ready
|
||||
to go. Open Gradle toolbar on the right, and select `Tasks/applications/run`.
|
||||
to go. Open Gradle toolbar on the right, and select `sample/Tasks/applications/run`.
|
||||
First run may take some time, and afterwards following dialog will show up:
|
||||
|
||||

|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 571 KiB After Width: | Height: | Size: 770 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 187 KiB After Width: | Height: | Size: 427 KiB |
Reference in New Issue
Block a user