zubairehman / flutter_boilerplate_project

A boilerplate project created in flutter using MobX and Provider.
http://zubairehman.surge.sh/
MIT License
2.27k stars 910 forks source link

get_it is much easier to user for dependancy injection #17

Closed dhsont closed 5 years ago

dhsont commented 5 years ago

Hi i like this boilerplate, but creating 2 extra file of Class for dependency injection is unnecessary.

we can use Get_it package which is easy to use and reduces unnecessary files.

https://pub.dev/packages/get_it @zubairehman @eladcandroid

zubairehman commented 5 years ago

@dhsont these extra files will be removed in the future release. As get_it turned out to be a Service Locator (and I’m not a fan of this pattern), I decided to play with this library: inject.dart. It is heavily inspired by Dagger, that we normally use in Android, I’ve decided to dig into it.