markgravity / flutter-survey

3 stars 0 forks source link

[40] [Backend] Add Locator service #42

Closed markgravity closed 3 years ago

markgravity commented 3 years ago

https://github.com/markgravity/flutter-survey/issues/40

What happened

We need a service to handle dependency injection

sleepylee commented 3 years ago

tbh we will have to revise the lifecycle of this living instance. Maybe this one is alive throughout the whole app's session, but for the later instances, please recheck if it's necessary to be singleton always 😄 it's a very common pitfall when applying DI