Closed HerrNiklasRaab closed 5 years ago
Hi @HerrNiklasRaab
Yes I am actively maintaining this and using it in a couple of apps in production (ios and android).
The @Injectable is a tricky one as this is a runtime dependency injector rather than a compile time one. Keep in mind that we cannot use mirrors (reflection) in flutter as it is not included so the annotation route is a compile time one.
I favour the approach of simple code rather than relying on build time code generation.
In that essence I modularize the dependency injection creating a container that invokes smaller module containers to manage the dependencies of that part of the app. This helps manage a large number of dependencies.
Ok, great the we will also use this in production. With @Injectible I thought so because i saw this package: https://github.com/ltackmann/dice. But your Api is "more friendly", this is why i chose yours.
Just tried to use your package, works like charme :)
Awesome, thanks for using it. Let me know if you need a new feature or anything.
Jon
On Fri, 12 Oct 2018, 21:03 HerrNiklasRaab, notifications@github.com wrote:
Ok, great the we will also use this in production. With @Injectible I thought so because i saw this package: https://github.com/ltackmann/dice. But your Api is "more friendly", this is why i chose yours.
Just tried to use your package, works like charme :)
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/jonsamwell/flutter_simple_dependency_injection/issues/6#issuecomment-429274421, or mute the thread https://github.com/notifications/unsubscribe-auth/ADhfoYsBQPJT1tRxzLgf8GGbUMZMioW1ks5ukGkMgaJpZM4XZEY0 .
Did you checked out the dice project how they handle the @Injectable?
Hi @HerrNiklasRaab dice uses mirrors (reflection) to handle the @Injectable annotation so I won't be able to use this in Flutter as it does not come with mirrors.
Ok, no problem, still great software!
Thanks!
Hello,
thank you for your work you have done already!
Two questions:
Thanks for your time,
Niklas