I am working on a flutter app and I am trying to look a bit beyond just development. I had a few questions on the effect of some practices on compilation and the build.
- I am used to having my UI built by making my reusable custom widgets.
I will reuse them through the app. I do this for maintainability and
to keep everything homogenous. When I have my small set of reused
widgets instead of using material3 package let’s say. Does that optimize
(even if slightly) the performance since it is a smaller set? - Do Enums help as well in performance? do I gain anything by using Enum rather than working with pre-existing types ?
- How about files placements? does the way organize my project files contribute in any way?
- what about creating smaller packages for each side of my app, let’s
say an API package, a UI package… then having them be part of my full app? does this help in some way? - for the specific case of Flutter: why should I stick to one state
management? how does using multiple ones impact my app?
I covered some of the ideas I have, please if you know of any tricks or tips on how to get the most out of apps development or any habits that will optimize my code, please add them in the answers.




