mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
Combed up Getting Started tutorial
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
# Getting Started with Compose for Desktop
|
||||
# Getting Started with Compose Multiplatform
|
||||
|
||||
## What is covered
|
||||
|
||||
In this tutorial we will create a simple desktop UI application
|
||||
using the Compose UI framework.
|
||||
using Compose Multiplatform UI framework.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
@@ -12,7 +12,7 @@ and so any of these platforms can be used for this tutorial.
|
||||
|
||||
The following software has to be preinstalled:
|
||||
* JDK 11 or later
|
||||
* IntelliJ IDEA Community Edition or Ultimate Edition 20.2 or later (other editors could be used, but we assume you are using IntelliJ IDEA in this tutorial)
|
||||
* IntelliJ IDEA Community Edition or Ultimate Edition 2020.3 or later (other editors could be used, but we assume you are using IntelliJ IDEA in this tutorial)
|
||||
|
||||
## Creating a new project
|
||||
|
||||
@@ -30,6 +30,14 @@ packaging JDK 15 or later must be used.
|
||||
|
||||

|
||||
|
||||
### IDE plugin
|
||||
|
||||
Compose Multiplatform [IDEA plugin](https://plugins.jetbrains.com/plugin/16541-compose-multiplatform-ide-support)
|
||||
can simplify compose development by adding support for `@Preview` annotation on argument-less
|
||||
`@Composable` functions. One could see how particular composable function looks like
|
||||
directly in IDE panel. This plugin could also be discovered via plugins marketplace,
|
||||
just search for "Compose Multiplatform".
|
||||
|
||||
### Update the wizard plugin
|
||||
|
||||
The Сompose plugin version used in the wizard above may be not the last. Update the version of the plugin to the latest available by editing the `build.gradle.kts` file, finding and updating the version information as shown below. In this example the latest version of the plugin was 1.0.0-alpha1-rc1 and a compatible version of kotlin was 1.5.21. For the latest versions, see the [latest versions](https://github.com/JetBrains/compose-jb/releases) site and the [Kotlin](https://kotlinlang.org/) site.
|
||||
@@ -148,3 +156,7 @@ The first run may take some time, but afterwards the following dialog will be sh
|
||||
|
||||
You can click on the button several times and see that the application reacts and
|
||||
updates the UI.
|
||||
|
||||
Running and debugging the `main()` function using run gutter is also supported.
|
||||
|
||||

|
||||
BIN
tutorials/Getting_Started/screen6.png
Normal file
BIN
tutorials/Getting_Started/screen6.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 170 KiB |
Reference in New Issue
Block a user