Igor Demin
a208ecba73
|
2 years ago | |
---|---|---|
.idea | 4 years ago | |
artwork | 3 years ago | |
benchmarks | 3 years ago | |
benchmarks-intellij | 3 years ago | |
build-helpers | 3 years ago | |
ci | 2 years ago | |
components | 2 years ago | |
compose | 2 years ago | |
examples | 2 years ago | |
experimental | 2 years ago | |
gradle-plugins | 2 years ago | |
idea-plugin | 2 years ago | |
license | 3 years ago | |
templates | 2 years ago | |
tooling | 3 years ago | |
tools | 2 years ago | |
tutorials | 2 years ago | |
web | 2 years ago | |
.gitignore | 2 years ago | |
.gitmodules | 3 years ago | |
CHANGELOG.md | 3 years ago | |
FEATURES.md | 2 years ago | |
LICENSE.txt | 4 years ago | |
README.md | 2 years ago | |
gradle.properties | 4 years ago |
README.md
Compose Multiplatform, by JetBrains
Compose Kotlin UI framework port for desktop platforms (macOS, Linux, Windows) and Web, components outside of the core Compose repository at https://android.googlesource.com/platform/frameworks/support.
Preview functionality (check your application UI without building/running it) for desktop platforms is available via IDEA plugin (https://plugins.jetbrains.com/plugin/16541-compose-multiplatform-ide-support).
Tutorials
Compose for Desktop
- Getting started
- Image and icon manipulations
- Mouse events and hover
- Scrolling and scrollbars
- Tooltips
- Context Menu
- Top level windows management
- Menu, tray, notifications
- Keyboard support
- Tab focus navigation
- Swing interoperability
- Navigation
- Accessibility
- Building a native distribution
Also, see Foundation and Design docs from Google. They were originally written for Android, but most of information applies to Compose for Desktop as well.
Compose for Web
- Getting started with Compose for Web
- Building web UI
- Handling Events
- Controlled and Uncontrolled inputs
- Style DSL
- Using test-utils
Jetpack Compose for Android
Compose Multiplatform uses Jetpack Compose developed by Google when you target Android platform. See more info about it here.
The docs published by Google are great and decribe how to develop on Compose for Android.
Note that when you use Compose Multiplatform, you setup your project differently. You can create a multiplatform project with Android support via IDEA Project Wizard, or by copying multiplatform template. In androidMain
source set you can use almost all information from the docs, and in commonMain
source set you can use information from Foundation and Design sections.
Examples
- codeviewer - File Browser and Code Viewer application for Android and Desktop
- imageviewer - Image Viewer application for Android and Desktop
- issues - GitHub issue tracker with an adaptive UI and ktor-client
- game - Simple game
- game - Simple game for web target
- compose-bird - A flappy bird clone using Compose for Web
- notepad - Notepad, using the new experimental Composable Window API
- todoapp - TODO items tracker with persistence and multiple screens
- todoapp-lite - A simplified version of todoapp, fully based on Compose
- widgets gallery - Gallery of standard widgets
- IDEA plugin - Plugin for IDEA using Compose for Desktop
Other
- artwork - design artifacts
- benchmarks - collection of benchmarks
- compose - composite build of Compose Multiplatform sources
- ci - Continuous Integration helpers
- gradle-plugins - a plugin, simplifying usage of Compose Multiplatform with Gradle
- templates - new application templates
- components - custom components of Compose Multiplatform
- experimental - experimental components and examples
- cef - CEF integration in Jetpack Compose (somewhat outdated)
- Video Player
- LWJGL integration - An example showing how to integrate Compose with LWJGL
- CLI example - An example showing how to build Compose without Gradle
Getting latest version of Compose Multiplatform
See https://github.com/JetBrains/compose-jb/releases/latest for the latest stable release or https://github.com/JetBrains/compose-jb/releases for all stable and dev releases.