Technical requirements
This chapter includes three sample apps. Please refer to the Technical requirements section in Chapter 1, Building Your First Compose App, for information about how to install and set up Android Studio, and how to get them. StateDemo
contains all examples from the Understanding stateful and stateless composable functions section. The Hoisting state and passing events section discusses the FlowOfEventsDemo
sample. Finally, ViewModelDemo
belongs to the Surviving configuration changes section.
All the code files for this chapter can be found on GitHub at https://github.com/PacktPublishing/Android-UI-Development-with-Jetpack-Compose/tree/main/chapter_05.