Welcome back to the 3rd part of the Flutter YouTube Search tutorial course. In the previous part we’ve created a data source which acts as an interface between the raw JSON data we get from the HTTP client and our Built Value classes. Data source, however, is a fairly low level class which would be cumbersome to put into a BLoC. We need to move up the ladder of abstraction.

For that we’re going to create a repository. Repositories can combine data from multiple sources or, as in our case, make the data easier to get to. We can accomplish this simplification by preparing a nice way for data pagination.

👉Get the code from this tutorial👈

 

About the author 

Matt Rešetár

Matt is an app developer with a knack for teaching others. Working as a Flutter freelancer and most importantly developer educator, he doesn't have a lot of free time 😅 Yet he still manages to squeeze in tough workouts 💪 and guitar 🎸

You may also like

Flutter Bloc & Cubit Tutorial

Flutter Custom & Staggered Page Transition Animation Tutorial

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>