जरी Flutter डिफॉल्टने परफॉर्मंट असला तरी, परफॉर्मन्स ऑप्टिमाइজेशनमध्ये अनावश्यक rebuilds कमी करणे, कार्यक्षम list rendering, const चा योग्य वापर, build मध्ये महाग काम टाळणे आणि profiling समाविष्ट असते. या गोष्टी समजून घेतल्याने अॅप्स गुळगुळीत (60/120 fps) राहतात.
अनावश्यक rebuilds कमी करणे
✓ Use CONST constructors where possible → const widgets aren't rebuilt (huge win)
const Text('Static') // not rebuilt unnecessarily
✓ Keep setState/rebuild scope SMALL → rebuild only what changed (extract widgets so
state changes rebuild a small subtree, not the whole screen)
✓ Use targeted state management (rebuild only widgets that depend on changed state)
✓ Don't rebuild large trees for small changes
