Inflearn brand logo image
Inflearn brand logo image
Inflearn brand logo image
BEST
Programming

/

Mobile Application Development

Flutter Intermediate Part 3 - Dependency Injection Guide

This is a guide course on proper dependency injection in Flutter. It presents how to use DI utilizing the injectable package.

(5.0) 11 reviews

204 learners

  • survivalcoding
플러터
flutter
의존성주입
Flutter
clean-architecture
dependency
MVVM
provider

Reviews from Early Learners

What you will learn!

  • Concept and Usage Method

  • Dependency Injection using get_it, injectable libraries

Complex Dependency Problems, Easy Solutions
Flutter Dependency Injection Guide

Increasingly complex dependency problems 🚨

  • The first problem you'll run into as your app grows is that it can easily become spaghetti code .
  • If you develop while paying attention to dependencies to avoid spaghetti code, you will end up applying design patterns.
  • Even if you develop using clean architecture, the code for injecting dependencies ends up becoming quite complex.
  • In this lecture, we will present a guide to proper dependency injection in Flutter projects.

DI Library 📖

Flutter has many libraries that help with DI (dependency injection).
In this tutorial we will use the Injectable library, which does not depend on any specific state management tool.

Injectable library used in lectures

Who should take this course 🙆‍♀️

If your DI setup so far is similar to or worse than the following code, then you should take this course.

So, after listening to the lecture!

  • ✅ After taking this course, the code where people directly do DI, as shown above, will be removed.
  • ✅ You can deliver instances in the desired format at the appropriate time.

Why DI is needed
Let me give you some perspective.

This is structured so that you can feel the need for DI by refactoring or rewriting examples covered in previous lectures from a different perspective.

Refactoring part 📚

💡 Diagnose and refactor the problems in the note app written in 'Flutter Intermediate Part 1 - Clean Architecture' .

When developing small apps, you may thinklessly use all objects as singletons. However, this is not a good practice for medium-sized or larger apps. Learn about this problem while refactoring existing apps.

  • This is a refactoring course that starts by downloading the source code of 'Flutter Intermediate Part 1 - Clean Architecture'.
  • As we work through the issues, we refine the code to make it better.

Rewrite 📚

💡 Let's recreate the mask information app written in MVVM in 'Flutter Application - Mask Information App' by applying clean architecture and DI .

Have you ever experienced delays in the development period due to implementing detailed functions when creating an app? Experience a new development method by rewriting the 'Mask Inventory' app in a way that considers clean architecture and DI.

Leverage DI to quickly build apps by mocking data and easily replace it with real data later.

  • At first, we develop the app by testing it based on fake objects.
  • After the app is complete, we use the DI library to replace it with real data.

[Oh Jun-seok's Flutter App Development Series] Lecture Selection Guide 👀

Make sure this is the course you need to study.
(Click on the image to view it in a new window.)


Things to note before taking the class 📢

This course will be conducted in the following environment:

Practice environment

  • Operating System and Version (OS): Targeting Android in a macOS environment
  • Tools used: Android Studio Flamingo or higher, Flutter 3, Dart 3 or higher

Learning Materials

  • We provide a download of starter code for the refactoring section.
  • The rewrite section provides the completed source code.

Player knowledge and notes, related lectures

  • This is an intermediate course for those who have previously learned MVVM and Clean Architecture.

Recommended for
these people

Who is this course right for?

  • For those interested in a guide on dependency injection in Flutter

  • Those who want to know the advantages of dependency injection

Need to know before starting?

  • Flutter Intermediate - Clean Architecture Course Learner

  • Experienced in MVVM, Clean Architecture

Hello
This is

11,612

Learners

813

Reviews

856

Answers

4.7

Rating

14

Courses

교육하고 책 쓰는 개발자 오준석입니다.
'오준석의 생존코딩' 유튜브 채널과 생존코딩 (https://survivalcoding.com) 교육 플래폼을 운영중입니다.

전문 분야 : Android, Flutter

저서
오준석의 플러터 생존코딩 (한빛미디어 2020)
오준석의 안드로이드 생존코딩: 코틀린 편 (한빛미디어 2018)
될 때까지 안드로이드 (루비페이퍼 2018)

주요경력
오렌지(OhRange) 대표
세민직업전문학교 정보기술개발 직업훈련교사
수원스마트앱개발학원 운영
LG전자 MC사업부
일본 아이치현 (株)東海理科 Security사업부
일본 아이치현 (株)日本テクシード IT사업부

LinkedIn: https://www.linkedin.com/in/junsuk5/

Curriculum

All

29 lectures ∙ (3hr 22min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

11 reviews

5.0

11 reviews

  • njw9108님의 프로필 이미지
    njw9108

    Reviews 3

    Average Rating 5.0

    5

    24% enrolled

    역시 믿고 보는 오준석 선생님 강의 너무 좋습니다! 최근 프로젝트 구조를 잡는 부분에 대해서 고민이 많았었는데 큰 도움 받았습니다. 좋은 강의 감사합니다! 클린아키텍쳐에 한걸음 가까이 가고 싶으신 분들은 강추합니다.

    • nationpower81님의 프로필 이미지
      nationpower81

      Reviews 11

      Average Rating 5.0

      5

      93% enrolled

      클린 아키텍처에 이어 DI 까지 많은 것을 배워 갑니다. 감사합니다 꼭 "Flutter 중급 1편 - 클린 아키텍처" 듣고 바로 연결해서 수강하시기를 권장 드립니다.

      • 정재한님의 프로필 이미지
        정재한

        Reviews 11

        Average Rating 4.5

        5

        24% enrolled

        확실히 플러터는 명불허전 오준석 선생님이십니다. 다른곳에서는 절대 가르쳐주지않는 di 강의.. 정말 자세하게 알려주셔서 di부분 마스터 했습니다. 감사합니다. 또 강의 만들어 주세요 돈이 하나도 아깝지 않습니다

        • 헤이나우님의 프로필 이미지
          헤이나우

          Reviews 19

          Average Rating 4.6

          5

          97% enrolled

          많은 사람들이 프로젝트 하나를 협업을 하다보면 Di를 꼭 해야합니다. 아니면 중복 코드가 너무나 많아지구요 하지만 이런 di기술이 꼭 필요함에도 실무가 아니면 배우기 힘들기도 합니다. 하지만 이 강의에선 di를 사용하면 모가 좋은지 부터 어떻게 써야 하는지 까지 다양하게 알려주시고 실무에서 사용할만한 방법도 가이드 해주십니다. 꼭 강의방법대로 써야 하는건 아니지만 한번쯤 들어볼만 합니다. di는 개념적으로 배우면 앞으로 개발하시는데 많은 도움이 될겁니다. 실무에선 무조건 사용해야 하구요

          • 오준석
            Instructor

            정성스러운 리뷰 감사합니다. 번창하세요.

        • jhhyun님의 프로필 이미지
          jhhyun

          Reviews 3

          Average Rating 5.0

          5

          100% enrolled

          $59.40

          survivalcoding's other courses

          Check out other courses by the instructor!

          Similar courses

          Explore other courses in the same field!