-
-
Notifications
You must be signed in to change notification settings - Fork 153
How to Implement DI get_it with other package in a project #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
if you reference get_it in all your packages they will share the same instance as default. |
Are there samples that I can study? @escamoteur |
Can you elaborate what is not clear to you? |
My Project App Structures: ├── lib
│ ├── ...
│ └── ...dart
│
├── module1
├── module2 In my project in each module, for example, in the example, there are In each package contains all the Data, State Management and UI. I'm confused about where the DI implementation is put? Do I put it in Or is the DI (Service Locator) placed in each item module? I want to apply this in the best practice. |
if your modules are packages, you have two options:
|
Thanks @escamoteur |
I have a study case, I want to make an app with a modular project with the package, in the item module. But I don't know about Implementing Dependency Injection in the module.
Thanks..
The text was updated successfully, but these errors were encountered: