Uploaded March 2019 | Updated November 2026, 3 hours ago
π Get the code from this part ππ
resocoder.com/flutter-youtube-search-09
Welcome back to the 9th part of the Flutter YouTube Search tutorial course. In the previous part, we've added new code to the data source and also to the repository which allows us to fetch detailed data about a single video.
Before we start writing a UI, we need to create a BLoC which we will use as the middle layer for communicating between widgets and the repository. This Detail BLoC will be similar to the Search BLoC which we've already created, but the more you do something, the more you learn!
Go to my 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
π Get the code from this part ππ
resocoder.com/flutter-youtube-search-09
Welcome back to the 9th part of the Flutter YouTube Search tutorial course. In the previous part, we've added new code to the data source and also to the repository which allows us to fetch detailed data about a single video.
Before we start writing a UI, we need to create a BLoC which we will use as the middle layer for communicating between widgets and the repository. This Detail BLoC will be similar to the Search BLoC which we've already created, but the more you do something, the more you learn!
Go to my 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 TDD Clean Architecture Course [7] β Network Info
π Learn from the written tutorial ππ
https://resocoder.com/flutter-tdd-clean-architecture-ep7
π¨βπ» Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
Now that we have the Repository implementation in place, were going to implement its dependencies, starting with the NetworkInfo class used for finding out if the device is currently connected to a network. This part is where we will finally do test-driven development with 3rd party packages, which means were going to mock 3rd party classes.
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 [7] β Network Info](https://i.ytimg.com/vi/xWl7GzMDiwg/mqdefault.jpg)








