fanoos_project: ^0.2.0 copied to clipboard
A package to make complicated flutter projects without spgetti code.
Everything you need to know to have a good flutter app structure.
Folder structure #
Small-Medium apps #
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.
Large apps #
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.
State management #
Service do not have modified constructors. They cannot depend on BuildContext.
TODO: more explanation
File names #
Class names #
Use camel case
Variable names #
constant or final