Skip to content
All guides

Flutter interview preparation: what the rounds test and how answers are scored

By Mike Salari. Staff mobile engineer · 500+ technical interviews from the hiring side.

This page is for Flutter engineers preparing for a mid-level or senior round. You get ten questions as they are asked out loud, what the interviewer writes down, what a strong answer covers, the follow-ups that change the conditions, and the weak answers that end the conversation early. Five of them come with short Dart snippets you can run tonight.

Who this is for

Flutter and Dart engineers with production apps behind them. If you can build a screen and call an API, this page is about the next step: explaining what the framework does under your widgets, and where your own code breaks.

Interviewers probe follow-ups, and a memorised answer collapses under the first one. So every question below has a chain of follow-ups. Practise those as hard as the first answer.

The answer shape that scores

Use the same five steps for every question. They come from The Flutter Interview Book, and they are what an interviewer listens for.

  1. Clarify. State your assumptions: scale, platform, failure budget.
  2. Answer directly. One or two sentences, before any setup.
  3. Explain the mechanics. Ownership, lifecycle, data flow, threading or rendering.
  4. Trade off. Name one real alternative and the condition that would change your choice.
  5. Verify. The test, trace, metric or rollback that proves it works.

Most weak answers stop at step 2. Most strong answers spend their time on steps 3 to 5.

The questions

1. "Your list items lose their state when the user reorders them. Why?"

What is scored: whether you know how an element decides to keep or replace its state.

A strong answer covers:

  • Context: each list row is a StatefulWidget, for example a row with a checkbox or a text field.
  • Mechanics: when the parent rebuilds, Flutter calls Widget.canUpdate. It compares the runtime type and the key of the old and new widget. With no keys, rows of the same type match by position, so state stays at index 2 even when the data at index 2 changed.
  • Decision: give each row a key from stable data, such as the item ID.
  • Alternative: UniqueKey makes a new element every build, so state is thrown away each time. GlobalKey works but costs more and is easy to misuse.
  • Evidence: a widget test that reorders the list and checks the toggled row stays toggled.
Dart
ListView(
  children: [
    for (final todo in todos)
      TodoRow(key: ValueKey(todo.id), todo: todo),
  ],
)

Follow-ups:

  • The IDs come from the server and can repeat across pages. What now?
  • You move a row into a different parent. Does a ValueKey still save its state?
  • Why is ValueKey(index) no better than no key?

Weak answer: "Add a key to fix it." It names the fix with no mechanism, so the next follow-up about which key and why has no answer.

2. "Walk me through the save button: await the save, then go back. What can go wrong?"

What is scored: whether you know the async gap problem.

A strong answer covers:

  • BuildContext is the element's handle to its place in the tree. After an await, the user may have left the screen and the element may be gone.
  • The Dart lint use_build_context_synchronously flags this. Inside a State, check mounted. For a context passed in as an argument, check context.mounted.
  • Better design: the ViewModel does the save and exposes the result. The view reacts to the new state.
  • Failure mode: the save succeeds, the screen is gone, and Navigator.of(context).pop() acts on a dead element.
Dart
Future<void> _onSave() async {
  await viewModel.save(form);
  if (!mounted) return;
  Navigator.of(context).pop();
}

Follow-ups:

  • The same handler lives in a helper function that takes BuildContext context. What changes?
  • The save fails. Where does the error message come from, and who shows it?

Weak answer: "I wrap it in try/catch." It hides the crash and the screen still acts on stale state.

3. "This Row overflows on a small phone. Explain why before you fix it."

What is scored: the layout model, not the patch.

A strong answer covers:

  • The rule from the Flutter docs: constraints go down, sizes go up, parent sets position.
  • A Row gives its children unbounded width along the main axis. A long Text asks for its full width and the row cannot fit it.
  • Decision: wrap the flexible child in Expanded or Flexible, so the row hands it the remaining space as a constraint.
  • Alternative: FittedBox scales the content down. Fine for an icon label, wrong for body text that must stay readable.
  • Evidence: test with large accessibility font sizes, where overflow shows up first.

Follow-ups:

  • The text sits inside a Column inside the Row. Where does the Expanded go now?
  • Why can a widget not decide its own position on screen?

Weak answer: "Wrap it in a SingleChildScrollView." A horizontal scroll on a label hides the bug from the developer and moves it to the user.

4. "In what order do these lines print?"

What is scored: the event loop, which explains half of all async bugs.

Dart
void main() {
  print('A');
  Future(() => print('B'));
  Future.microtask(() => print('C'));
  print('D');
}
// A, D, C, B

A strong answer covers:

  • Synchronous code runs first: A, then D.
  • Microtasks run before other async events such as timers and I/O, so C comes before B.
  • Future(...) puts work on the event queue. Future.microtask puts it on the microtask queue.
  • Failure mode: a microtask that keeps scheduling more microtasks starves the event loop. Taps, timers and frames wait.

Follow-ups:

  • B is now Future.delayed(Duration.zero, ...). Does the order change?
  • A heavy synchronous loop runs between A and D. What does the user see?

Weak answer: "Async code runs in the background." Dart runs one event loop per isolate. Async code is not on another thread.

5. "Parsing a large JSON response freezes the screen. Fix it."

What is scored: moving work off the main isolate, and knowing the cost of doing so.

A strong answer covers:

  • Context: at 60 fps each frame has about 16 ms. A long parse on the main isolate misses frames.
  • Decision: Isolate.run for one-off work. It spawns an isolate, runs the callback and shuts it down.
  • Cost: messages between isolates are usually copied. Isolate.run returns its result through Isolate.exit, which passes ownership without a copy.
  • Limits: no rootBundle or widget work in a spawned isolate. On the web there are no isolates, and compute runs on the main thread.
  • Evidence: frame timings in profile mode before and after.
Dart
import 'dart:convert';
import 'dart:isolate';

Future<List<Photo>> parsePhotos(String body) {
  return Isolate.run(() {
    final data = jsonDecode(body) as List<Object?>;
    return data.cast<Map<String, Object?>>().map(Photo.fromJson).toList();
  });
}

Follow-ups:

  • The parse runs every few seconds. Is spawning each time still right?
  • The payload is small but the screen still freezes. What else do you check?

Weak answer: "Make the function async." An async function still runs its synchronous parse on the main isolate.

6. "How do you choose a state management approach for this app?"

What is scored: design reasons, not package names.

A strong answer covers:

  • Start from ownership: who owns the state, how long it lives, who reads it, who may write it.
  • The official architecture guide marks ChangeNotifier and Listenable as conditional and says the choice is largely preference. Say that, then give your criteria.
  • Criteria from the book's decision framework: how transitions are represented, what rebuilds, how it is tested, and what migrating away costs.
  • Local UI state can stay in setState. A shared async workflow benefits from a tool that makes cancellation and transitions explicit.
  • Evidence: one hard flow prototyped and measured before the team standardizes.

Follow-ups:

  • The team already uses a different package. Do you switch for this feature?
  • How do you test the ViewModel without building a single widget?

Weak answer: "Package X is the best." A package name is not a design. A small local problem should not inherit an enterprise event architecture.

7. "The native call fails on one platform. What does the Dart side see?"

What is scored: treating the platform boundary as a real boundary with its own failures.

A strong answer covers:

  • Native code returns an error with a code, message and details: result.error(...) in Kotlin, FlutterError in Swift. On the Dart side, invokeMethod throws a PlatformException.
  • If no handler is found for the call, the future completes with a MissingPluginException. Catch that too.
  • Platform handlers run on the main thread by default. Long work there blocks the native UI, so use a background task queue.
  • Pigeon generates type-safe code for both sides, so you stop matching method names as strings.
Dart
try {
  final level = await platform.invokeMethod<int>('getBatteryLevel');
  return BatteryState.known(level ?? 0);
} on PlatformException catch (e) {
  return BatteryState.unavailable(e.code);
}

Follow-ups:

  • The feature does not exist on Android at all. Where do you decide that, Dart or native?
  • How do you test this without a device?

Weak answer: "The plugin handles it." Plugins are platform code, and someone on your team owns their failures.

8. "This screen is slow. How do you find out why?"

What is scored: measurement before fixes.

A strong answer covers:

  • Profile on a physical device in profile mode. The docs say debug mode and emulators do not show release behaviour, and suggest the slowest device your users might reasonably use.
  • Read the performance overlay. Red in the UI graph means Dart code is too expensive. Red in the raster graph means the scene is too complex to draw. When both are red, start with the UI thread.
  • Reduce it to one repeatable interaction and record a baseline.
  • Change one cause, rerun the same scenario, compare.
  • Add a check that catches the regression next time.

Follow-ups:

  • Frames are fine but memory grows on every visit. What do you look for first?
  • When does a RepaintBoundary hurt?

Weak answer: "I add const everywhere." It may help a little, but it is a guess and not a diagnosis.

9. "Your widget test calls pumpAndSettle and times out. Why?"

What is scored: whether you control time in tests.

A strong answer covers:

  • pump renders one frame after a given duration. pumpAndSettle keeps pumping until no frames are scheduled.
  • An endless animation, such as an indeterminate progress spinner, always schedules another frame, so pumpAndSettle fails at its timeout.
  • Decision: pump the exact frames you need, or a set duration. The Flutter API docs say it is better to know why each frame is needed.
  • Alternative: replace the spinner state in the test with a fake ViewModel that is already loaded.

Follow-ups:

  • The screen uses Future.delayed for a debounce. How do you test it without waiting?
  • What belongs in a unit test of the ViewModel instead of a widget test?

Weak answer: "I raise the timeout." The animation never ends, so a bigger timeout only makes the failure slower.

10. "What would you share across iOS and Android, and what stays native?"

What is scored: economics and reversibility, not loyalty to a framework.

A strong answer covers:

  • The principle from the Mobile System Design Blueprint, chapter 19: share only where the meaning of the code is stable enough that one implementation is cheaper than two, and only if you can afford to reverse the bet.
  • Good to share: logic whose rules change rarely and must give the same answer on both platforms. Two copies drift, and drift on something like a balance becomes a support cost.
  • Keep native: platform authorities such as the keychain, biometrics and deep OS features. The shared side asks; the platform side decides.
  • The boundary is a platform channel or a Pigeon interface, with an owner for each side and a way to unplug it.
  • Weak metric to avoid: "lines of code shared" as the success number. It says nothing about drift or release coupling.

Follow-ups:

  • A shared module crashes only on iOS. Who gets paged, and who can read the stack trace?
  • The UI was redesigned three times this year. Share it or not?

Weak answer: "One codebase means half the work." Two stores, two signing setups and two sets of platform bugs do not halve.

What changed in 2024 to 2026

  • Impeller. The only renderer on iOS. Default on Android API 29 and above, with fallback to OpenGL on older or non-Vulkan devices. Default on macOS, Linux and Windows as of Flutter 3.47. The web still uses Skia. (Impeller rendering engine, updated 21 August 2026)
  • Merged threads. From Flutter 3.29 (February 2025), Flutter on Android and iOS runs Dart code on the app's main thread, with no separate UI thread. macOS and Windows followed in 3.35. (What's new in Flutter 3.29; Merged threads on macOS and Windows)
  • Official architecture recommendations with strength levels. Separate UI and data layers, repositories and MVVM are strongly recommended; a domain layer is conditional. (Architecture recommendations, updated 5 May 2026)
  • Isolate guidance covers Isolate.run, message copying and plugins in background isolates. (Concurrency and isolates, updated 31 July 2026)

Say which Flutter version your target team ships before you quote any of this. Interviewers check.

How the rounds run

Formats vary by company and level. I have not found an official page from a large company that publishes a fixed Flutter loop, so treat any loop you read about online as one person's report.

The book lists three practical rounds worth rehearsing: a paginated feed that stays correct when refresh and pagination overlap, a refactor of a screen that does I/O inside a widget, and a CustomPainter progress view with semantics and tests. Ask the recruiter what each round scores and whether you will write code live, talk through code, or review it.

For the senior round, go on to senior Flutter interview questions. If you also interview for React Native roles, see React Native interview preparation. For architecture rounds across platforms, see mobile app architecture interview questions.

Sources

These ten questions are a sample. The book has 500, junior to staff, each with a direct answer and links to the official docs, plus 40 staff lab prompts, the decision frameworks and the performance checklist used above.