Back to Browse

Jetpack Compose Navigation with Type-Safety and Parcelables

13.9K views
May 30, 2024
39:48

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/TypeSafeComposeNavigation *Helper Libary Repo:* https://github.com/ioannisa/NavTypeParcelableHelperLibrary *Playlist:* https://www.youtube.com/playlist?list=PLp_FpnyDwvuDLq_I-C3tJqDiHOFuIzJgk *Related Article:* https://medium.com/androiddevelopers/navigation-compose-meet-type-safety-e081fb3cf2f8 *Google I/O '24 Android Announcements:* https://android-developers.googleblog.com/2024/05/whats-new-in-jetpack-compose-at-io-24.html _______ 🏠 Website → https://anifantakis.eu 🎬 All Videos: https://anifantakis.eu/videos/ 🕮 All Articles: https://anifantakis.eu/articles/ ✅ Subscribe for more videos → https://youtube.com/ioannisanifantakis 👍 Follow me • LinkedIn: https://www.linkedin.com/in/anifantakis/ • Medium: https://ioannisanif.medium.com/ • Twitter: https://twitter.com/ioannisa • GitHub: https://github.com/ioannisa _______ #JetpackCompose #NavigationCompose #Parcelables #Android

Download

0 formats

No download links available.

Jetpack Compose Navigation with Type-Safety and Parcelables | NatokHD