Uploaded June 2019 | Updated November 2026, 3 hours ago
π Learn from the written tutorial & GET THE CODE ππ
resocoder.com/flutter-chopper-interceptors
π¨βπ» Do you write good code? Find out now π
resocoder.com/good-code-quiz
Having conquered the basics of Chopper, such as making HTTP requests, in the previous part, it's time to take a detailed look at interceptors. They are a bit more high-level components of Chopper and they are used to perform some actions right before sending out a request, or right after receiving a response.
The nature of interceptors is that they run with every request or response performed on a ChopperClient. If you want to perform a client-wide operation, interceptors are just the right thing to employ.
Do you want to keep a statistic of how many times a certain URL has been called? Do you want to add headers to every request? Do you want to tell the user to switch to WiFi when he's about to download a large file? All of this is a job for an interceptor.
Go to the website for more information, code examples, and articles:
β resocoder.com
Follow me on social media:
β instagram.com/resocoder
β facebook.com/resocoder
β twitter.com/resocoder
β gab.ai/resocoder
π Learn from the written tutorial & GET THE CODE ππ
resocoder.com/flutter-chopper-interceptors
π¨βπ» Do you write good code? Find out now π
resocoder.com/good-code-quiz
Having conquered the basics of Chopper, such as making HTTP requests, in the previous part, it's time to take a detailed look at interceptors. They are a bit more high-level components of Chopper and they are used to perform some actions right before sending out a request, or right after receiving a response.
The nature of interceptors is that they run with every request or response performed on a ChopperClient. If you want to perform a client-wide operation, interceptors are just the right thing to employ.
Do you want to keep a statistic of how many times a certain URL has been called? Do you want to add headers to every request? Do you want to tell the user to switch to WiFi when he's about to download a large file? All of this is a job for an interceptor.
Go to the website for more information, code examples, and articles:
β resocoder.com
Follow me on social media:
β instagram.com/resocoder
β facebook.com/resocoder
β twitter.com/resocoder
β gab.ai/resocoder

![Flutter Firebase & DDD Course [12] - Note Value Objects
π Get the code ππ
https://github.com/ResoCoder/flutter-ddd-firebase-course
π― The biggest Flutter conference in Europe:
https://fluttereurope.dev
π§ Get Flutter news π° and resources:
π http://flutter.education
π¨βπ» Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
From the previous part, we know which business rules occur in the notes feature of the app and weve already created the failures used to let the user know when such rules are not being followed. How can we enforce these rules though? Well, with validation and value objects.
Go to my website for more information, code examples, and articles:
β https://resocoder.com
Follow me on social media:
β https://instagram.com/resocoder
β https://www.facebook.com/resocoder
β https://twitter.com/resocoder Flutter Firebase & DDD Course [12] - Note Value Objects](https://i.ytimg.com/vi/VwqPxlp7QmI/mqdefault.jpg)

![Flutter Firebase & DDD Course [21] - Note Cards UI
π Get the code ππ
https://github.com/ResoCoder/flutter-ddd-firebase-course
π§ Get Flutter news π° and resources:
π http://flutter.education
π¨βπ» Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
Weve populated the real Firestore database with a note but were still showing only colorful placeholders in place of the note cards. Lets build an actual UI for them.
Go to my website for more information, code examples, and articles:
β https://resocoder.com
Follow me on social media:
β https://instagram.com/resocoder
β https://www.facebook.com/resocoder
β https://twitter.com/resocoder Flutter Firebase & DDD Course [21] - Note Cards UI](https://i.ytimg.com/vi/WcagE5oOOpk/mqdefault.jpg)
![Flutter Firebase & DDD Course [23] - Maintenance Time
π Get the code ππ
https://github.com/ResoCoder/flutter-ddd-firebase-course
π§ Get Flutter news π° and resources:
π http://flutter.education
π¨βπ» Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
As the time goes by, there are new versions of packages. Its good to update them periodically as not to overwhelm yourself at a later time when there may be so many breaking changes that it might feel youre rebuilding your whole app again. Of course, its also nice to use the new features of the given packages too π
Go to my website for more information, code examples, and articles:
β https://resocoder.com
Follow me on social media:
β https://instagram.com/resocoder
β https://www.facebook.com/resocoder
β https://twitter.com/resocoder Flutter Firebase & DDD Course [23] - Maintenance Time](https://i.ytimg.com/vi/X8Miduzjt7s/mqdefault.jpg)


![Flutter TDD Clean Architecture Course [12] β Bloc Implementation 2/2
π Learn from the written tutorial ππ
https://resocoder.com/flutter-tdd-clean-architecture-ep12
π¨βπ» Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
We started to implement the NumberTriviaBloc in the previous part and you learned the basics of doing TDD with Streams. In this part, lets finish the Bloc implementation so that we can move on to dependency injection next.
We already implemented an important part of the logic which runs whenever the GetTriviaForConcreteNumber event arrives in the Bloc - input conversion. However, after we have the successfully converted and validated int for which the user wants to see some amazing number trivia, we currently just throw an UnimplementedException. Lets change that!
Go to my website for more information, code examples, and articles:
β https://resocoder.com
Follow me on social media:
β https://instagram.com/resocoder
β https://www.facebook.com/resocoder
β https://twitter.com/resocoder Flutter TDD Clean Architecture Course [12] β Bloc Implementation 2/2](https://i.ytimg.com/vi/YSNeS5S5Nqw/mqdefault.jpg)


![Flutter Firebase & DDD Course [26] - Color Field
π Get the code ππ
https://github.com/ResoCoder/flutter-ddd-firebase-course
π§ Get Flutter news π° and resources:
π http://flutter.education
π¨βπ» Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
How can a user select a color for a note? By choosing it through a widget were about to make, of course.
Go to my website for more information, code examples, and articles:
β https://resocoder.com
Follow me on social media:
β https://instagram.com/resocoder
β https://www.facebook.com/resocoder
β https://twitter.com/resocoder Flutter Firebase & DDD Course [26] - Color Field](https://i.ytimg.com/vi/YaTz7me_UAc/mqdefault.jpg)