zubairehman / flutter_boilerplate_project

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

About Using Provider #79

Closed ibrahimdevs closed 3 years ago

ibrahimdevs commented 3 years ago

Hi @zubairehman ,

In project, provider using only for share store instance with sub widgets in tree. (different pages.) Is there any different using scenerio for Provider in this project?

So can we use Get_it instead of provider here? If possible, which one do you prefer and why?

I feel get_it more simpler and because of there is no context requirement, we should use get_it. What is your thoughts?

Thanks,

zubairehman commented 3 years ago

Hi @ibrahimdevs,

yes, you can use get_it as I am using the provider just to pass the store to different widgets/screens. If time permits, i will add some examples of get_it in the new branch :)