Summary
In this chapter, we revisited all the basics that we learned in Chapter 2, The Core Building Blocks of State Management. We created a shopping cart application using everything that we studied before. These are the main learning outcomes of the chapter:
- The first section covered the concepts of passing the data as arguments in screen constructors, along with passing the data back to the previous screen using callbacks.
- The second section was about adding boilerplate code so that we don't need to add
setState
calls inside our UI, making it cleaner and easier to understand. - The third section extended the functionality of
InheritedWidget
and optimized the rebuilding of widgets usingaspect
parameters.
In the next chapter, we will learn how to create the same shopping cart application using Provider, Riverpod, Business Logic Component (BLoC), and Cubit. There is a high-level comparison of these techniques that we will be covering later on in Chapter...