Jetpack Compose Navigation with Type-Safety and Parcelables

Опубликовано: 23 Март 2026
на канале: Ioannis Anifantakis
13,929
124

See how to enhance your Jetpack Compose navigation to a new type-safe approach using Kotlin DataClasses, introduced in Navigation Component 2.8.0-alpha08 at Google I/O '24.

I'll also introduce my custom helper library that simplifies handling Parcelables and strings with special characters, making your navigation setup cleaner and more efficient.

Watch as I demonstrate practical examples and guide you through each step to boost your Android development productivity. Don't forget to like, subscribe, and hit the notification bell so you never miss an update!

CHAPTERS:
00:00 Introduction
02:29 Starter Code
07:00 Dependencies
08:39 New NavHost File
09:48 Setting-Up the New NavHost
15:15 Defining Custom NavTypes
21:25 Standardizing Parcelables
26:59 Serializing Strings
33:02 Standardizing String Serialization
35:50 NavHelper Library

Project Repo: https://github.com/ioannisa/TypeSafeC...
Helper Libary Repo: https://github.com/ioannisa/NavTypePa...

Playlist:    • Jetpack Compose — Building a RecyclerView ...  

Related Article:   / navigation-compose-meet-type-safety  

Google I/O '24 Android Announcements: https://android-developers.googleblog...

_______
🏠 Website → https://anifantakis.eu

🎬 All Videos: https://anifantakis.eu/videos/
🕮 All Articles: https://anifantakis.eu/articles/

✅ Subscribe for more videos →    / ioannisanifantakis  

👍 Follow me
• LinkedIn:   / anifantakis  
• Medium:   / ioannisanif  
• Twitter:   / ioannisa  
• GitHub: https://github.com/ioannisa
_______

#JetpackCompose #NavigationCompose #Parcelables #Android