Mastering Clean Architecture & Repository Pattern in Flutter

preview_player
Показать описание
Take your Flutter skills to the next level with this Flutter tutorial. Learn how to apply SOLID principles and manage data from a remote API with ease using the Repository Pattern and Clean Architecture framework. You'll come away with the tools to create cleaner, more scalable code that's easy to maintain and update in your own Flutter projects.

☺ *Support the channel:*

Any donation is gratefully received, thank you!

- Via YouTube's Super Thanks (⬆ Button labeled THANKS above ⬆)

🔔 *Subscribe:*

Subscribe to my channel to see more videos like this:

📖 *Useful resources:*

- Remote API used in this tutorial:
- Quicktype (quickly convert JSON to Dart entities):
- Open source project created in this video:

📖 *Flutter libraries used:*

- In this tutorial, freezed is used to generate the domain models:
- Data models are autogenerated with json_serializable:
- The logger package is used to write to the log:
- The provider package is used for dependency injection and state management:
- Images are displayed and cached with the cached_network_image package:
- Internationalization and language-related tools:
- You can create an infinite scrollable list with infinite_scroll_pagination:
- We will use sqflite to work with a local database:

🔵 *Follow me:*

Find out about my latest videos and publications:

⏳ *Timecodes:*

00:00 - Introduction
02:15 - Project setup & domain model creation with freezed
06:27 - Create the network entity models
08:07 - Map network entities to domain models
10:45 - Create the API client with dio
15:21 - Create the Movie Repository
19:13 - Load local configuration & setup dependency injection tree
26:10 - Create MoviePreview widget
30:26 - Infinite scrollable list with infinite_scroll_pagination
33:47 - Create the database entities
36:37 - Database mapper & Data Access Objects (DAO)
41:38 - Adjust the repository to work with the database
44:50 - Synchronize the local database with new data available in the API
50:34 - Dart analyze, Dart format, and final conclusion
Рекомендации по теме
Комментарии
Автор

This video is a gold mine of information

oscarisorez
Автор

So impressed and grateful for how clear and well paced this tutorial was. I have not used the data/domain/presentation architecture before but will attempt to implement it in my current project at work using this video as a reference.

martinmj
Автор

Amazingly explained. Please make more videos like this.

theflutterboi
Автор

Great tutorial, you have a great pace for tutoring, something that is lacking at a lot of Flutter videos.

MultiDesignWork
Автор

Thank you so much for this wonderful tutorials.

Inandoutpk
Автор

This tutorial is so useful I am a new learner and thanks to you for this. Great content.

satishsharma
Автор

siriam using riverpod and i have heard that riverpod is anti architecture need help how can i use clean archetecture for riverpod

hurbangash
Автор

Followed up to the point where you passed the 'providers' parameter to App().. this is making my widget_test.dart fail since i can't access the given parameter in that widget_test.dart file, any suggestions?

nevilleraheemdavis
Автор

why you didn't go for hive and used SQLite?

Anilkumar-ecsj
Автор

After running the application, my application shows blank screen.
The Data is logging in my console.
but after that it becomes null. Any solution?

debajyotisaha
Автор

hello you said to me:

You're welcome, if you want, when I launch the video, remind me in a comment and I'll explain exactly what you would have to do to incorporate Firestore.

so if you want to explain it to me that would be adorable thank you !!!

nekorielfredbear
welcome to shbcf.ru