|Project Name||Stars||Downloads||Repos Using This||Packages Using This||Most Recent Commit||Total Releases||Latest Release||Open Issues||License||Language|
|Getx||9,091||1||311||19 days ago||314||March 10, 2023||903||mit||Dart|
|Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.|
|Inject.dart||799||3 years ago||7||mit||Dart|
|Compile-time dependency injection for Dart and Flutter|
|Jmessage Flutter Plugin||167||a year ago||58||mit||Java|
|JMessage's Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件（Android & iOS）。|
|Flutter Jetpack||99||2 years ago||other||CSS|
|Flutter jetpack project help you find better dependency library. Welcome to my website (http://jetpack.net.cn)|
|Flutter_simple_dependency_injection||80||7||3||3 years ago||12||April 14, 2021||1||mit||Dart|
|A super simple dependency injection implementation for flutter that behaviours like any normal IOC container and does not rely on mirrors|
|Lakos||59||8 months ago||16||January 09, 2022||1||mit||Dart|
|Visualize Dart/Flutter library dependencies in Graphviz dot. Detect dependency cycles.|
|Menu_button||46||3 years ago||25||March 23, 2021||2||mit||Dart|
|Flutter plugin to display a popup menu button widget with handsome design and easy to use.|
|Steps_indicator||45||3 years ago||11||March 04, 2021||1||mit||C++|
|Flutter plugin to display a simple steps indicator line widget|
|Rtmp_tencent_live||42||a year ago||14||August 19, 2020||4||other||Java|
|A version of flutter based on Tencent live|
|Pubspec Assist||41||2 years ago||21||mit||TypeScript|
|Easily add dependencies to your Dart / Flutter project. https://marketplace.visualstudio.com/items?itemName=jeroen-meijer.pubspec-assist|
This is a weather app built with Flutter to prove how inject.dart library can be used.
This application integrates multiple advanced concepts for Flutter: fetching data from API, reactive programming, BLoC pattern and dependency injection. If dependency injection is too complicate for you at this moment, open the WeatherAppFlutter repository.
A Medium article explains the Dependency Injection concept from a Flutter developer perspective. It also provides a step-by-step tutorial for building this application with corresponding details of each line of code. For more details, please read the Dependency Injection in Flutter using inject.dart package article.
Open the app in your favorite editor and add the inject.dart library manually:
git submodule add https://github.com/google/inject.dart
flutter packages getcommand in your terminal to import the inject.dart library.
As inject works with code generation, we need to use build_runner to generate the required code. Run the following command:
flutter packages pub run build_runner build
Now you can run Flutter build as usual.