---
title: "Discussion on \"Master The Art of Dependency Injection\" | Hashnode"
description: "Discussion on \"Master The Art of Dependency Injection\". What is Dependency Injection? Why Dependency Injection? How to Inject Dependencies? How to achieve Dependency Injection In Flutter?"
url: "https://hashnode.com/posts/master-the-art-of-dependency-injection/61208c21e404793819ca89a2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Master The Art of Dependency Injection](https://dhruvnakum.xyz/master-the-art-of-dependency-injection?utm_source=hashnode&utm_medium=feed)

What is Dependency Injection? Why Dependency Injection? How to Inject Dependencies? How to achieve Dependency Injection In Flutter?

Aug 21, 2021 · 8 min read · dhruvnakum.xyz  
Updated Aug 28, 2021  
Read the article

-   [#flutter](https://hashnode.com/tag/flutter)
-   [#dependency-injection](https://hashnode.com/tag/dependency-injection)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#programming](https://hashnode.com/tag/programming)
-   [#dart](https://hashnode.com/tag/dart)

## Written by

[Dhruv Nakum](https://hashnode.com/@Dhruv-Nakum)

@Dhruv-Nakum · India

  
[View profile](https://hashnode.com/@Dhruv-Nakum)

Developer 👨‍💻

I'm a mobile/web developer 👨‍💻 who loves to build projects and share valuable tips for programmers Follow me for Flutter, React/Next.js, and other awesome tech-related stuff 😉

## Responses 6

Markdown supported · ⌘↵ to post

[DZ CODE](https://hashnode.com/@DzCode)

[Dec 31, 2022](https://hashnode.com/posts/master-the-art-of-dependency-injection/61208c21e404793819ca89a2/comment/63b0645542ec5647dfa03f80)

Great thank you a lot

[Fred Muya](https://hashnode.com/@muya)

[Aug 7, 2022](https://hashnode.com/posts/master-the-art-of-dependency-injection/61208c21e404793819ca89a2/comment/62efb9ede3a3793580e03047)

The quality of your articles is top-notch. Easy to follow and understand. Kudos!

[Dhruv Nakum](https://hashnode.com/@Dhruv-Nakum)

[Aug 7, 2022](https://hashnode.com/posts/master-the-art-of-dependency-injection/61208c21e404793819ca89a2/comment/62efb9ede3a3793580e03047#reply-62efbf99e3a3793580e03132)

Thank you Fred 😃

[Ginaa](https://hashnode.com/@ginaa)

[May 11, 2022](https://hashnode.com/posts/master-the-art-of-dependency-injection/61208c21e404793819ca89a2/comment/627b9820e525f1b677136928)

I finally understand what dependency injection is, all thanks to you! Keep up the good work!

[Dhruv Nakum](https://hashnode.com/@Dhruv-Nakum)

[May 11, 2022](https://hashnode.com/posts/master-the-art-of-dependency-injection/61208c21e404793819ca89a2/comment/627b9820e525f1b677136928#reply-627bdbaee525f1b677137660)

Thank you Ginaa 😄 Glad you liked it!!

[khaled mohammad](https://hashnode.com/@khaled09909)

[Apr 21, 2022](https://hashnode.com/posts/master-the-art-of-dependency-injection/61208c21e404793819ca89a2/comment/62614dc37019274627fd96da)

Very huge thanks for you. Easy and very good explain and clarify the reasons why we use each way to implement the DI.

[Dhruv Nakum](https://hashnode.com/@Dhruv-Nakum)

[Apr 21, 2022](https://hashnode.com/posts/master-the-art-of-dependency-injection/61208c21e404793819ca89a2/comment/62614dc37019274627fd96da#reply-62615d23d82f4558aff8591f)

Thank you Khaled, for the feedback Really appreciate it 💙

[Quoc DEV](https://hashnode.com/@quocdev)

[Mar 11, 2022](https://hashnode.com/posts/master-the-art-of-dependency-injection/61208c21e404793819ca89a2/comment/622afe448ea100a5ef18695b)

Thank you so much, I can learn from you quickly!

[Dhruv Nakum](https://hashnode.com/@Dhruv-Nakum)

[Mar 12, 2022](https://hashnode.com/posts/master-the-art-of-dependency-injection/61208c21e404793819ca89a2/comment/622afe448ea100a5ef18695b#reply-622c36cfc86eecb52b3720a6)

Glad you liked it 💙 Keep learning 🎯

[Michele Volpato](https://hashnode.com/@mvolpato)

[Aug 21, 2021](https://hashnode.com/posts/master-the-art-of-dependency-injection/61208c21e404793819ca89a2/comment/6120d1e4e404793819ca902d)

Hi Dhruv, nice article. It would be nice if you could use code snippets instead of images.

For the rest, awesome explanation, I really enjoyed it.

[Dhruv Nakum](https://hashnode.com/@Dhruv-Nakum)

[Aug 21, 2021](https://hashnode.com/posts/master-the-art-of-dependency-injection/61208c21e404793819ca89a2/comment/6120d1e4e404793819ca902d#reply-6120dd44e404793819ca915a)

Thanks for the feedback [Michele Volpato](https://hashnode.com/@mvolpato). Sure I'll add snippets instead of images from now on.
