Giter Site home page Giter Site logo

get-started-with-cm's Introduction

Official project License

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.

ComposeDemoStage1

This project reflects steps 2, 3, and 4 of the tutorial.

In this project, we:

  1. Create a project using the Kotlin Multiplatform wizard.
  2. Add a dependency on the kotlinx-datetime library.
  3. Add the todaysDate() function that returns current date.
  4. Invoke this function from the App composable.

That's how your application should look at the end of the Modify the project step.

ComposeDemoStage2

This project reflects the changes made at the beginning of the fifth step of the tutorial.

In this project, we:

  1. Rewrite the App composable from scratch, removing unnecessary imports and code.
  2. Alter the main() function to improve the window rendering on desktop.
  3. Add support for user input and style the composable.
  4. Create and invoke the currentTimeAt() function that returns current time at a particular location.
  5. Improve the appearance of composables.

That's how your application should look at the end of the Improve the style section on the fifth step of the tutorial.

ComposeDemoStage3

This project reflects the changes made in the Refactor the design section on the fifth 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.

ComposeDemoStage4

This project reflects the changes made in the Introduce images section on the fifth step of the tutorial.

In this project, we:

  1. Include images in the resources folder of the application.
  2. 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.

get-started-with-cm's People

Contributors

garthgilmourni avatar danil-pavlov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.