You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Widget gallery
|
|
|
|
|
|
|
|
This example is derived from
|
|
|
|
[ComposeCookBook](https://github.com/Gurupreet/ComposeCookBook) project
|
|
|
|
by Gurupreet Singh ([@Gurupreet](https://github.com/Gurupreet))
|
|
|
|
published under [MIT license](third_party/ComposeCookBook_LICENSE.txt).
|
|
|
|
|
|
|
|
An example of Compose application for Desktop and Android platforms,
|
|
|
|
demonstrating how to use various Material widgets.
|
|
|
|
|
|
|
|
### Running desktop application
|
|
|
|
* To run, launch command: `./gradlew :desktop:run`
|
|
|
|
* Or choose **desktop** configuration in IDE and run it.
|
|
|
|
![desktop-run-configuration.png](desktop-run-configuration.png)
|
|
|
|
|
|
|
|
### Building native desktop distribution
|
|
|
|
```
|
|
|
|
./gradlew :desktop:package
|
|
|
|
# outputs are written to desktop/build/compose/binaries
|
|
|
|
```
|
|
|
|
|
|
|
|
### Installing Android application on device/emulator
|
|
|
|
```
|
|
|
|
./gradlew installDebug
|
|
|
|
```
|