Hoewel Flutter standaard performant is, omvat performance-optimalisatie het minimaliseren van onnodige rebuilds, efficiënte list rendering, correct gebruik van const, het vermijden van duur werk in build, en profiling. Het begrijpen hiervan houdt apps soepel (60/120 fps).
Onnodige rebuilds minimaliseren
✓ 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
