This is the sample project for a video and article related on how to implement the Repository Pattern to keep a local copy of the fetched data from a remote API.
You can find the text version of the tutorial here.
You can find the video version of the tutorial on Youtube and Odysee.
If you try to execute this sample just after cloning it, it will fail. To fix it, create a file lib/data.dart
with the API key obtained from here:
const apiKey = 'YOUR API KEY HERE';
flutter pub run build_runner build