Complete Flutter App Course | Flutter Tutorial for Beginners | Repository & UseCases (3)

Опубликовано: 22 Октябрь 2024
на канале: TECHIE BLOSSOM
8,729
273

#MovieApp #ProApp #IndustryStandard #Plan #Develop #Publish #EndtoEnd #Repository #UseCase #CleanArchitecture

Join this channel to support the channel and get access to perks:
   / @techieblossom  

We are building a Movie App with the best coding practices and tools out there. In the previous article, datasource doc, I have explained how to create a data source and how to make API calls. In this article, I will show how you can create repositories and usecases to separate the data layer from the UI layer by introducing the domain layer, with the help of abstraction.

Problem
You have seen in the previous article, that we were calling data source from **main.dart**, which is your UI layer. In a long run, this is not right and certainly needs a layer in between. Also, what this does is, it tightly couples the UI layer with API responses, which can change over time and you'll end up making changes to the data layer as well as the UI layer.

##Solution

Find in the Video :)

Timeline
0:32 Problem - Data Source in UI
01:45 Solution - Abstract Repository
02:18 Implement Repository
04:50 UseCase
07:30 Dartz
08:34 Error Handling
10:24 Fold Operator
11:28 More UseCases
13:20 Caveat
15:52 NoParams

If you liked the video, then please show me by hitting the like button for the video and show some love by giving star 🌟 on Github.
https://github.com/TechieBlossom/movi...

━ ━ ━ ━ ━ ━ ━ ━ ━ ━━ ━ ━ ━ ━ ━ ━ ━ ━ ━
Other Videos
━ ━ ━ ━ ━ ━ ━ ━ ━ ━━ ━ ━ ━ ━ ━ ━ ━ ━ ━
➨ Neumorphism, Gradient Chart & Custom Shape End Drawer -    • Sidebar Animation & Navigation | Flut...  
➨ Google Stadia App Concept -    • Flutter UI | Stadia App Concept - Ful...  
➨ Local Events App -    • Flutter UI | Local Events App  
➨ Sidebar animation and navigation -    • Sidebar Animation & Navigation | Flut...  
➨ Despicable Me Characters App -    • Flutter UI | Despicable Me Characters...  
➨ Flight Ticket App Playlist -    • Flight List UI | BLOC PATTERN & SERVI...  
➨ Video Game Messaging App -    • Video Game Message App | Flutter UI  
➨ Bloc Tutorials -    • State Management | Foundation - flutt...  

━ ━ ━ ━ ━ ━ ━ ━ ━ ━━ ━ ━ ━ ━ ━ ━ ━ ━ ━
Support!!
━ ━ ━ ━ ━ ━ ━ ━ ━ ━━ ━ ━ ━ ━ ━ ━ ━ ━ ━
Helps me in carving out more time for tutorials
❤️ From India and don't want to pay commission - There are many ways you can connect with me (Website, Twitter, Comments)
❤️ Buy me a Coffee https://www.buymeacoffee.com/AGd0Xngci
or here is my
❤️ PayPal account paypal.me/techieblossom

━ ━ ━ ━ ━ ━ ━ ━ ━ ━━ ━ ━ ━ ━ ━ ━ ━ ━ ━
Follow me! Show your support towards the channel:
━ ━ ━ ━ ━ ━ ━ ━ ━ ━━ ━ ━ ━ ━ ━ ━ ━ ━ ━
🎯 Medium -   / prateeksharma  
🎯 Twitter -   / sharmaprateek7  
🎯 Website - https://www.techieblossom.com
🎯 Github - https://github.com/TechieBlossom

SUBSCRIBE FOR MORE VIDEOS LIKE THIS
LIKE & SHARE

THANKS FOR WATCHING!🙏🙏🙏