Dependency injection is necessary if you’re not coding spaghetti 🍝 and you want to keep nice layers of separation in your Flutter app’s codebase. The problem is that all of the libraries out there, such as get_it or kiwi, are just service locators with no support or limited support for automating the registration of dependencies.

Dagger solves it elegantly for native Android and Angular is also known for its powerful dependency injection framework. Now, we Flutter developers can finally use something similar - the injectable package which is a code generator for get_it.

#flutter #dart #angular #mobile-app

Injectable – Flutter & Dart Equivalent to Dagger & Angular Dependency Injection
20.80 GEEK