injectable icon indicating copy to clipboard operation
injectable copied to clipboard

Dependency Injection in microlibrary packages

Open geovin89 opened this issue 4 years ago • 5 comments

More of a knowledge question rather than an issue. My project is using a micro-library architecture where each layer is separated into different packages as shown here https://dart.dev/guides/libraries/create-library-packages. I would like to use injectable for dependency injection in this project but couldn't find a way to do it reading about it in the injectable library.

I would greatly appreciate it for any help that you could provide regarding this

geovin89 avatar Sep 24 '20 03:09 geovin89

I'm developing the implementation of such a feature. I'll do PR in the next week

GoncaloPT avatar Sep 26 '20 17:09 GoncaloPT

I've finished a 0.1 version of it. you can see it in the following fork: https://github.com/GoncaloPT/injectable/blob/master/README.md#support-for-micro-packages I'll talk to injectable owners to see their interest in pushing this as a new feature... @Milad-Akarie what do you think?

GoncaloPT avatar Sep 29 '20 16:09 GoncaloPT

Very interesting on it

rafampessoa avatar Mar 19 '21 20:03 rafampessoa

Any news on it? @geovin89

fryette avatar May 27 '21 12:05 fryette

Ditto. I'd love to see this so that we can inject without manually having to define them in a module.

jhancock4d avatar Sep 24 '21 13:09 jhancock4d

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions

github-actions[bot] avatar Feb 21 '23 08:02 github-actions[bot]