Kotlin Desktop App from Scratch: Compose + Material3 | Lesson 01
93views
2likes
07:16
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
Learn how to build your first Kotlin desktop application using Compose Multiplatform! In this lesson we set up a project from scratch with Gradle, configure the Compose Desktop plugin, and write a Hello World app with a click counter using Material3.
What You'll Learn:
- Installing Java, Kotlin, and Gradle prerequisites
- Creating a Compose Multiplatform project manually (no IDE wizard)
- Configuring settings.gradle.kts and build.gradle.kts
- Understanding the Compose Desktop project structure
- Writing your first @Composable function
- Using remember + mutableStateOf for state management
- Applying Material3 dark theme
- Running your app with ./gradlew run
Timestamps:
0:00 - Introduction
0:15 - Prerequisites Check
0:45 - Creating the Project
2:15 - Project Structure Overview
3:15 - Writing Your First App (Main.kt)
4:45 - Live Demo: Hello Compose
5:45 - Recap & Key Takeaways
6:45 - End Screen
Source Code: https://github.com/GoCelesteAI/kotlin-desktop-tutorial
Key Takeaways:
1. Kotlin + Compose Multiplatform builds native desktop apps on JVM
2. Gradle plugins handle all build configuration
3. @Composable functions declare reactive UI
4. remember + mutableStateOf tracks state across recompositions
5. Material3 provides dark theme and components out of the box
Related Lessons:
Lesson 02: Layouts & Styling in Compose Desktop (coming soon)
Tech Stack:
Kotlin 2.1, Compose Multiplatform 1.7.3, Material3
Gradle 8.10, JVM 17+
If you found this helpful, please like and subscribe for more Kotlin Desktop tutorials!
#kotlin #compose #desktop #material3 #gradle #tutorial #pr