Get started with Compose Multiplatform
This repository contains four separate projects. Each project accompanies corresponding sections of the Get started with Compose Multiplatform tutorial. You can open and run each project or follow the tutorial manually and create your own.
This project reflects steps 1, 2, and 3 of the tutorial.
In this project, we:
- Create a project using the Kotlin Multiplatform wizard.
- Add a dependency on the kotlinx-datetime library.
- Add the
todaysDate()
function that returns current date. - Invoke this function from the
App
composable.
That's how your application should look at the end of the Modify the project step.
This project reflects the changes made at the beginning of the fourth step of the tutorial.
In this project, we:
- Rewrite the
App
composable from scratch, removing unnecessary imports and code. - Alter the
main()
function to improve the window rendering on desktop. - Add support for user input and style the composable.
- Create and invoke the
currentTimeAt()
function that returns current time at a particular location. - Improve the appearance of composables.
That's how your application should look at the end of the Improve the style section on the fourth step of the tutorial.
This project reflects the changes made in the Refactor the design section on the fourth step of the tutorial.
In this project, we change the application design. Users can now select items from a dropdown menu instead of manually using the text field.
This project reflects the changes made in the Introduce images section on the fourth step of the tutorial.
In this project, we:
- Include images in the
composeResources
folder of the application. - Enhance the dropdown menu to display each item with an image.
This is the final stage of the tutorial. That's how your application should look at the end of the Create your own application step.