Sebbene Flutter sia performante per impostazione predefinita, l'ottimizzazione delle prestazioni comporta la minimizzazione dei rebuild non necessari, il rendering efficiente delle liste, l'uso corretto di const, evitare operazioni costose in build e il profiling. Comprendere questi aspetti mantiene le app fluide (60/120 fps).
Minimizzare i rebuild non necessari
✓ 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
