Technical requirements
In order to proceed with this chapter, you will need the following:
- Code from the previous chapter, which can be found here: https://github.com/PacktPublishing/Flutter-Design-Patterns-and-Best-Practices/tree/master/CH06/final/candy_store.
- Libraries from
pub.dev
that we will connect to our application:flutter_bloc
(already added in Chapter 4) (https://pub.dev/packages/flutter_bloc) andget_it
(https://pub.dev/packages/get_it) - You will find all of the code required for this chapter here:
- Start of the chapter: https://github.com/PacktPublishing/Flutter-Design-Patterns-and-Best-Practices/tree/master/CH07/initial/candy_store.
- End of the chapter: https://github.com/PacktPublishing/Flutter-Design-Patterns-and-Best-Practices/tree/master/CH07/final/candy_store. You can review the step-by-step refactoring in the commit history of this branch. The alternative implementation using
get_it
can be found here: https://github.com/PacktPublishing/Flutter-Design...