Flutter TDD Clean Architecture Course [13] – Dependency Injection

preview_player
Показать описание
📗 Learn from the written tutorial 👇👇

👨‍💻 Do you write good code? Find out now!

We have all of the individual pieces of the app architecture in place. Before we can utilize them by building a UI though, we have to connect them together. Since every class is decoupled from its dependencies by accepting them through the constructor, we somehow have to pass them in.

We've been doing this all along in tests with the ​mocked​ classes. Now, however, comes the time to pass in real production classes using a service locator.

Go to my website for more information, code examples, and articles:

Follow me on social media:
Рекомендации по теме
Комментарии
Автор

Can't wait for the next part. I am curious how they all connect to each other:) This is like a Netflix show:D

aytunch
Автор

I dont know since which version, but now you can do sl.registerLazySingletonAsync(), this method allow you to instantiate async dependencies, so await async in init() is not longer necessary; you can implement shared prefs like this;

() =>

nestorperez
Автор

Oh... Man.. this playlist is 💎
Even after this years. 😩
Thanks sir..❤
I hope you're doing great 🥳

Mhmd_SHA
Автор

man i am glad somebody out there invented depedancy injection at some point. this thing is gold

ino
Автор

Bro 😀, this is beautiful. I have followed your tutorials one by one. You have indeed prepared me for real app development. I am now building better, faster and more stable apps.

mugume
Автор

This series is so cool! I even made the whole thing in rust after my non clean approach collapsed pretty quickly

max_ishere
Автор

Excellent reso, I had used Get It in some projects, but as always, you add that expertis that makes us go more there and do things in the best way, simply the best video tutorials.

alfonsoisraelosorioavilez
Автор

Thank you for pushing continouesly, I can't even get enough free time to keep up the pace 😂 To many different things to do... To many ideas and hobbies.
Keep up the good work! 🔥

ShadowInfest
Автор

I really can't appreciate your effort enough. Thank you

christianonwe
Автор

man you are the best. Thanks for sharing your knowledge

SabedoriaUniversal
Автор

Awesome tutorial, thanks your effort.

dokinkon
Автор

Thank you very much ! Nice tutorials !

abudev
Автор

Hi Matej, thanks again for continuing this great series. I don't think there is anyone else taking on tricky topics like TDD! If we are using the Provider package to make services available to the UI, is 'Get It' still necessary? Aren't they providing the same functionality?

NivenShah
Автор

If I want to get data from another previous page how can I do it? If the bloc is a factory, it will return a new instance when I call it in getIt, so all the data is new and not from the previous screen, how can I do it?

underfilho
Автор

how dare these 3 people disliked this.Thank you Reso

tahirdevlog
Автор

I think we need a video about how to use dependency injection without get_it, not all of the companies like to use external packages for all the implementation as needed

Starrk
Автор

I ran into Unhandled Exception and added in main method, before runApp() and it works

aophamminh
Автор

finally today i get all my answers about those abstract classes which we create but never pass anything

amansingh.h
Автор

I hope you are already planning to add new feature in this project and link with the number trivia feature.
Thank you again for such great and quality content.

pathakvivek
Автор

Great content, thanks for sharing. Btw, docs mention that from v5.0 on you can pass a `dispose` function when registering any Singletons.

mushexantaranian