Everything you need to know to have a good flutter app structure.
Contains the primary folders and a few primary dart files like
Contains all external assets that are imported using the assets section of
Contains all the pages.
In small to medium apps you can have all the pages in this folder.
Contains view context independent app logic.
Contains global widgets.
In smaller apps it contains all the widgets.
Larger apps may have more folders in lib.
here is two example extra folders that bigger projects may have:
Your app is probably not going to have a hundred themes, if it does, create reusable themes.
It is not recommended to write platform plugin in your project.
If you have to write your own plugin, for testing purposes, write it in the
then create a new flutter plugin project and migrate your code to there. if possible open source or
publish that plugin to pub.dev.
Service do not have modified constructors. They cannot depend on BuildContext.
TODO: more explanation
Use camel case
constant or final