Dependency Injection in Flutter - You HAVE to Use it !

  Рет қаралды 14,009

Flutter Guys

Flutter Guys

Күн бұрын

📄Dependency Injection (DI) is a design pattern used to implement Inversion of Control. It allows the creation of dependent objects outside of a class and provides those objects to a class through different ways. Using DI, we move the creation and binding of the dependent objects outside of the class that depends on them. This brings a higher level of flexibility, decoupling, and easier testing.
🌐 Telegram Community
🔗 t.me/flutterguysgp
📁Source Code
🔗 github.com/Fabrice-Fabio/depe...
🌐 Social Media
🔗 Linkedin:
/ fabrice-sumsa-9b1133151
/ mahdinazmi
🔗 GitHub:
github.com/Fabrice-Fabio
github.com/mahdinazmi
⏳ TIMESTAMPS :
00:00 Intro
00:22 Join Telegram Community
00:40 Why DI With GetIt?
01:04 Without DI
02:04 Ways To Registering Instances
02:49 Register Singleton
05:36 Register Lazy Singleton
06:33 Register Factory
#flutter #fluttertutorial #fluttercourse #flutterwidgets

Пікірлер: 35
@Hamiiidev
@Hamiiidev 8 ай бұрын
Great video Arkadash :)
@minseokjeong1881
@minseokjeong1881 8 ай бұрын
I love every your contents. Your contents is somewhat different than other flutter related youtuber. YOU NAILED IT!
@flutterguys
@flutterguys 7 ай бұрын
Wow, thank you!
@caio7369
@caio7369 26 күн бұрын
Great video!
@mohammedek6269
@mohammedek6269 2 ай бұрын
Explained very well🎉
@muammar88
@muammar88 3 ай бұрын
Well done! Thank you!
@hiwa_sh6813
@hiwa_sh6813 8 ай бұрын
Great video as usual 💜 Please make videos on state management in real & complex projects. Thanks
@flutterguys
@flutterguys 8 ай бұрын
Yes , Sure ... We recently started bloc course
@RapidSporty
@RapidSporty 4 ай бұрын
Very great!😃
@bendzbodoi
@bendzbodoi 5 ай бұрын
thank's for content and subtitle!
@jaanaan143
@jaanaan143 2 ай бұрын
That was helpful thanks.
@flutterguys
@flutterguys 2 ай бұрын
Glad it helped
@androidterminal3924
@androidterminal3924 8 ай бұрын
Wow, understood DI from just a 7 minute video!
@flutterguys
@flutterguys 8 ай бұрын
Glad it was helpful!
@billiardoxx
@billiardoxx 6 ай бұрын
Hi, I'm trying to understand how/when/why to use "injectable" package with get_it package for DI. Injectable is supposedly useful for boilerplate and other useful features like modules. I would ask that you could make an example application with just get_it, and then transform that same application into another "simplified" one with the help of the "injectable" package, in such a way that one could see how useful said package could be, or under what circumstances it is. I currently find it difficult to understand its use, and the current tutorials found on the Web do not provide much help. "injectable" has a notation called "module" that seems useful in a "features" approach but without comparing how it would be presented with just "get_it" you don't fully understand the mechanism behind it.
@edward9876
@edward9876 8 ай бұрын
easy to understand thank you I hope you to show video using injectable plz
@flutterguys
@flutterguys 8 ай бұрын
I will try my best
@trapeye3464
@trapeye3464 7 ай бұрын
How about prrovider, can provider use decency injection
@hosseinvejdani183
@hosseinvejdani183 7 ай бұрын
Thank you 🌹. I have a question. Is it possible to register a service with input argument? If yes how we can pass argument to service class inside the app programmatically?
@flutterguys
@flutterguys 7 ай бұрын
Yes you can pass get it instance instead of argument like this : sl()
@swapnilmusale5221
@swapnilmusale5221 8 ай бұрын
Thanks for this video it will be great if you add injectable support as well
@flutterguys
@flutterguys 8 ай бұрын
We will
@KyoYamamoto-rc5jp
@KyoYamamoto-rc5jp 8 ай бұрын
Great video! Thanks for the informative content, sir. One question! If the app is using Riverpod, would you consider using `get-it` as dependency injection?
@flutterguys
@flutterguys 8 ай бұрын
Yes , It doesn't matter what state management you use...
@KyoYamamoto-rc5jp
@KyoYamamoto-rc5jp 8 ай бұрын
@@flutterguys Thanks for the quick response!
@aouadicharaf1038
@aouadicharaf1038 8 ай бұрын
❤❤❤
@yasinkaracan7308
@yasinkaracan7308 8 ай бұрын
nice
@flutterguys
@flutterguys 8 ай бұрын
Thanks
@madhuparanjpe4176
@madhuparanjpe4176 7 ай бұрын
Isn't this similar to provider?
@salsichalivre5401
@salsichalivre5401 5 ай бұрын
Yes, the video is nice, but I never recommend using this as state management. Use it as Dependency injection solution only, so you can make our app loosely coupled class to class.
@manishgautam2424
@manishgautam2424 2 ай бұрын
injectable please
@faheemahmad5853
@faheemahmad5853 5 ай бұрын
kindly improve the ACCENT and AUDIO
@manishkarki8119
@manishkarki8119 4 ай бұрын
Fully agree
@MinhTo-lt9wy
@MinhTo-lt9wy 24 күн бұрын
great
Dependency Injection Explained in 7 Minutes
7:11
ArjanCodes
Рет қаралды 47 М.
New Gadgets! Bycycle 4.0 🚲 #shorts
00:14
BongBee Family
Рет қаралды 14 МЛН
I Need Your Help..
00:33
Stokes Twins
Рет қаралды 161 МЛН
Flutter Basics by a REAL Project
25:42
Flutter Guys
Рет қаралды 385 М.
Check for Network Connection using Connectivity Plus | Flutter
4:53
Coding With Flutter
Рет қаралды 1,6 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 739 М.
Flutter Rest API - Simplifying Make API Call Using Retrofit
3:41
Flutter Guys
Рет қаралды 18 М.
Flutter Dependency Inversion For Beginners | Complete Guide
13:37
FilledStacks
Рет қаралды 56 М.
Dependency Injection Easily Explained
8:14
Software Developer Diaries
Рет қаралды 10 М.
Most overpowered way to build mobile apps?
8:33
Beyond Fireship
Рет қаралды 708 М.
ПК с Авито за 3000р
0:58
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,9 МЛН
How much charging is in your phone right now? 📱➡️ 🔋VS 🪫
0:11
Дени против умной колонки😁
0:40
Deni & Mani
Рет қаралды 10 МЛН
i love you subscriber ♥️ #iphone #iphonefold #shortvideo
0:14
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 945 М.
Задача APPLE сделать iPHONE НЕРЕМОНТОПРИГОДНЫМ
0:57