You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How many service locators should I have in an application?
Should I initialize the ServiceLocator in main?
How do I manage dependencies properly?
In the tutorial it is mentioned that I should have a separate injection_container.dart for each feature. The problem is that some of these features share dependencies due to which if I initialize them in the wrong order, Get_it throws an error. Also I am initializing all this together in main, is there a better way to do this?
If you could point me to a resource where I can read about this further that will be great.
The text was updated successfully, but these errors were encountered:
I am following clean architecture tutorial from Resocoder https://resocoder.com/flutter-clean-architecture-tdd/ and well that is how I got introduced to Get_it.
I have three questions to ask:
In the tutorial it is mentioned that I should have a separate injection_container.dart for each feature. The problem is that some of these features share dependencies due to which if I initialize them in the wrong order, Get_it throws an error. Also I am initializing all this together in main, is there a better way to do this?
If you could point me to a resource where I can read about this further that will be great.
The text was updated successfully, but these errors were encountered: