4. This work is licensed under the Apache 2.0 License
Setup
5. This work is licensed under the Apache 2.0 License
Back Stack
The back stack is useful for when the
user wants to navigate backwards.
6. This work is licensed under the Apache 2.0 License
NavController
The NavController is the central API for
the Navigation component. It is stateful
and keeps track of the back stack of
composables that make up the screens
in your app and the state of each screen.
7. This work is licensed under the Apache 2.0 License
The NavHost links the NavController with a navigation
graph that specifies the composable destinations that
you should be able to navigate between.
NavHost
9. This work is licensed under the Apache 2.0 License
App Architecture
10. This work is licensed under the Apache 2.0 License
What is architecture?
11. This work is licensed under the Apache 2.0 License
Principles
● Separation of concerns
● Drive UI from data models
● Single source of truth
● Unidirectional Data Flow
12. This work is licensed under the Apache 2.0 License
Recommended
13. This work is licensed under the Apache 2.0 License
Any Questions
14. This work is licensed under the Apache 2.0 License
Thank you