All jobs / Mobile developer / Cross-Platform

Mobile developer interview question · 0–1 years

A Flutter screen rebuilds the whole tree on every keystroke. What is the first fix?

The strongest answer

Lift only the state that must change, rebuild the leaf (or use a targeted widget), and keep expensive work out of build()

Why it works

Exactly. build() should be cheap and local. Rebuild the thing that changed.

What a good answer covers

Answers that fall short

Who gets asked this

More Cross-Platform questions