Bloc: Why user_repository is outside the lib folder in examples/flutter_login?

Created on 18 Jul 2019  路  1Comment  路  Source: felangel/bloc

Just wonder why user_repository is outside the lib folder in examples/flutter_login.

question

Most helpful comment

Hi @2000calories 馃憢
Thanks for opening an issue and great question!

The repository is outside the lib folder to demonstrate that the repository can be a separate package entirely (with no dependency on flutter) and can theoretically be reused across different applications. You can even create separate git repositories for each of your repositories or publish them in a private pub server if you'd like for further modularity/reuse.

Hope that helps! 馃憤

>All comments

Hi @2000calories 馃憢
Thanks for opening an issue and great question!

The repository is outside the lib folder to demonstrate that the repository can be a separate package entirely (with no dependency on flutter) and can theoretically be reused across different applications. You can even create separate git repositories for each of your repositories or publish them in a private pub server if you'd like for further modularity/reuse.

Hope that helps! 馃憤

Was this page helpful?
0 / 5 - 0 ratings