All jobs / Mobile developer / Cross-Platform

Mobile developer interview question · 1–3 years

A Flutter screen parses a large file and the UI freezes for about a second while it does. Why, and what do you do?

The strongest answer

Dart runs your code and the UI on one isolate, so a long parse blocks the frame loop. Move that CPU work to another isolate; making it async alone changes nothing because nothing is waiting

Why it works

Right — async helps when you are waiting on something; here the CPU itself is busy, so the work has to move.

What a good answer covers

Answers that fall short

Who gets asked this

More Cross-Platform questions