Mastering Navigation in Multi-module KMP Project with Compose Multiplatform (CMP): A Comprehensive Guide for Android and iOS
Master the creation of seamless navigation flows across both Android and iOS in the CMP framework in a multi-module Kotlin Multiplatform Project. You’ll start by implementing basic screen-to-screen navigation and gradually move into advanced topics like transition animations, passing data between screens, and nested navigation with a Bottom Bar. You will also explore multi-module navigation in a Kotlin Multiplatform (KMP) project, allowing you to break your app into modular components. Additionally, you'll be introduced to third-party navigation libraries such as Voyager and Decompose to further enhance your app’s navigation capabilities. By the end of this codelab, you’ll have a solid understanding of navigation in CMP, be able to handle complex navigational structures, and provide smooth user experiences across platforms with animations and deep linking. This codelab equips you with the knowledge to manage both simple and advanced navigation flows in your Compose Multiplatform project.
Codelab Objectives
In this codelab, you’ll explore:
-
Explore fundamentals of navigation in CMP with Multi-module Kotlin Multiplatform project
-
How does navigation in CMP differ from native Android and iOS navigation?
-
Implement basic screen-to-screen navigation in a shared codebase for Android and iOS
-
Add transition animations when navigating between screens
-
Pass data between screens and manage navigation arguments effectively
-
Implement nested navigation with a Bottom Bar for more complex navigation structures
-
Learn how to manage multi-module navigation in a Kotlin Multiplatform (KMP) project
-
Handle backstack management, including the back button on both Android and iOS
-
Use advanced navigation features like conditional navigation and managing user flows
Codelab Content
More courses by the instructor