Dependency Injection in Flutter - You HAVE to Use it !

Dependency Injection in Flutter - You HAVE to Use it !

Flutter Guys

7 месяцев назад

12,985 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

billiardoxx
billiardoxx - 15.11.2023 08:24

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.

Ответить
Madhu Paranjpe
Madhu Paranjpe - 28.10.2023 23:35

Isn't this similar to provider?

Ответить
Hossein Vejdani
Hossein Vejdani - 21.10.2023 07:05

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?

Ответить
Trap eye
Trap eye - 14.10.2023 15:53

How about prrovider, can provider use decency injection

Ответить
Breh
Breh - 06.10.2023 04:18

Great explaination, I had a question though it might be dumb.. can't we achieve the same effect by using a provider? And call the function using:
context.read<AppService>().method
?

Ответить
Aouadi Charaf
Aouadi Charaf - 02.10.2023 00:48

❤❤❤

Ответить
Edward
Edward - 01.10.2023 06:18

easy to understand thank you I hope you to show video using injectable plz

Ответить
ああ
ああ - 30.09.2023 12:56

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?

Ответить
Yasin Karacan
Yasin Karacan - 30.09.2023 00:08

nice

Ответить
HamiiiD
HamiiiD - 29.09.2023 22:08

Great video Arkadash :)

Ответить
Nusantara KANG
Nusantara KANG - 29.09.2023 18:44

Wow, understood DI from just a 7 minute video!

Ответить
Hiwa_Sh
Hiwa_Sh - 29.09.2023 18:13

Great video as usual 💜
Please make videos on state management in real & complex projects.
Thanks

Ответить
Swapnil Musale
Swapnil Musale - 29.09.2023 17:02

Thanks for this video it will be great if you add injectable support as well

Ответить