TOA Part 6: Using Sealed Classes For View States

Опубликовано: 08 Февраль 2026
на канале: Adam McNeilly
690
21

This video is a segment of a live stream where we power the login screen of the TOA Android application. In this part, we modify our LoginViewState from a data class to a sealed class and discuss why that's helpful. We also look at how we can leverage this to make it easy to generate Jetpack Compose previews for multiple states. Then, we update our previous LoginContent composable to work with our new view state setup.

---

Watch the development of TOA live on Twitch:   / adammc331  
Star the repository on GitHub: https://github.com/adammc331/toa

Follow me on Twitter for more updates:   / adammc331