Skip to content
All guides

Senior Flutter interview questions: how each answer is scored

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

This page is for Flutter engineers going into a senior or staff round. You get ten scenario 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. None of them repeat the Flutter interview preparation page; these test judgement at app and team scale.

Who this is for

Senior and staff Flutter engineers, and mobile leads who own a Flutter codebase. You already know widgets, keys, isolates and platform channels. A senior round asks what you decided, what you gave up, and how you knew it worked.

The Flutter Interview Book judges the Flutter interview questions senior engineers face on five things: requirements, alternatives, measurement, operability and migration. At staff level it adds organisational constraints, long-term cost, governance and measurable success. Use that list as a checklist for every answer below.

Twelve senior Flutter questions on rendering, keys, state, isolates and platform channels, each with its follow-up, are in the senior Flutter guide on Mobile Interview Room.

The questions

1. "A form submits, the API succeeds, and you need to navigate and show a snackbar. Where does that code live?"

What is scored: keeping UI side effects out of business logic.

A strong answer covers:

  • Navigation and snackbars are UI side effects. The BLoC or ViewModel should not hold a BuildContext.
  • Decision: the logic layer emits a distinct result, such as a submission success state or a one-time event. The view listens and performs the side effect with its own context.
  • Alternative: pass callbacks into the ViewModel. It works for one screen and gets messy when two listeners need the same event.
  • Failure mode: the success state is still current after a rebuild or a back navigation, and the snackbar shows twice.
  • Evidence: a widget test that submits, settles, and asserts one navigation and one snackbar.

Follow-ups:

  • The user rotates the device right after success. Does the side effect fire again?
  • The API succeeds but the user already left the screen. What happens to the event?

Weak answer: "The BLoC calls Navigator with a global key." It couples logic to navigation and makes the logic untestable without the widget tree.

2. "A deep link opens a protected profile, and the user is logged out. Design the routing."

What is scored: auth as part of routing, and keeping the user's intent.

A strong answer covers:

  • A central redirect, not checks scattered in every screen. The Flutter architecture guide recommends go_router for most apps.
  • The redirect reads the auth state. Logged out and going to a protected route: send to login and keep the original location. Otherwise return null and show the route.
  • After login, read the saved location and go there.
  • Failure mode: a redirect loop when the login route itself is treated as protected.
  • Evidence: tests for cold start, warm start and an already-open app, each with a protected link.
Dart
redirect: (context, state) {
  final signedIn = auth.isSignedIn;
  final goingToLogin = state.matchedLocation == '/login';
  if (!signedIn && !goingToLogin) {
    return '/login?from=${Uri.encodeComponent(state.uri.toString())}';
  }
  return null;
},

Follow-ups:

  • The from value comes from outside the app. How do you stop an open redirect to an unexpected place?
  • The session expires while the user is on the protected screen. Who notices?

Weak answer: "Each screen checks login in initState." The protected screen already built, fetched data and maybe logged an event before the check ran.

3. "Users edit data offline. How do you model that?"

What is scored: sync, conflicts and honesty about what the docs do not solve.

A strong answer covers:

  • The official offline-first pattern: the repository is the single source of truth, combining the local database and the API.
  • Reads: a stream that emits local data first, then fresh server data.
  • Writes: offline-first writes go to the database first, then the API, with a flag per record that says whether it is synced.
  • What the docs leave to you, and the book does not: each mutation needs an ID, a version and an idempotency key. Pick a conflict policy per entity: server wins, last write wins, field merge, or ask the user.
  • Test long offline periods and a sync that is cut off halfway.

Follow-ups:

  • Two devices edit the same record offline. Walk me through what each user sees.
  • The user deletes a record offline that someone else edited online. What wins?
  • The user logs out with unsynced writes. What happens to them?

Weak answer: "We cache the responses." A read cache does not solve offline writes.

4. "A background isolate needs to read from a plugin. Can it?"

What is scored: the real limits of isolates, not the slogan.

A strong answer covers:

  • Yes, with limits. Capture the root isolate token on the main isolate and register the background isolate before calling the plugin.
  • A background isolate can send platform messages and get responses. It cannot receive unsolicited messages from the platform, so a long-lived listener does not work there.
  • No rootBundle and no widget work in a spawned isolate.
  • Since Flutter 3.29, Dart on Android and iOS runs on the app's main thread. Long synchronous Dart work now competes with the platform's own work too, so the case for moving heavy work off the main isolate is stronger.
Dart
final token = RootIsolateToken.instance!;
await Isolate.spawn(_worker, token);

Future<void> _worker(RootIsolateToken token) async {
  BackgroundIsolateBinaryMessenger.ensureInitialized(token);
  final prefs = await SharedPreferences.getInstance();
  // read, compute, send the result back through a SendPort
}

Follow-ups:

  • The plugin pushes live updates. Where does that subscription live now?
  • How do you cancel work that is already running in the isolate?

Weak answer: "Isolates can do anything the main isolate can." The first plugin that pushes events proves it wrong in production.

5. "An animation stutters the first time it runs and is smooth after. What is going on?"

What is scored: a renderer-aware diagnosis that does not stop at one buzzword.

A strong answer covers:

  • Classic cause on Skia: shader compilation the first time a pipeline is needed.
  • On Impeller targets, shaders are compiled offline, which removes that class of problem for most app-level work. Impeller is the only renderer on iOS and the default on Android API 29 and above, but older or non-Vulkan Android devices fall back to OpenGL. Know which devices your users have.
  • Other first-run causes that Impeller does not fix: image decoding, a first build that is too heavy, saveLayer from clips or opacity, a platform view.
  • Diagnose in profile mode on the affected device class and split UI cost from raster cost.

Follow-ups:

  • It only happens on one Android model. What do you collect from it?
  • Product wants the effect on the web too. What changes there?

Weak answer: "Impeller fixed jank." Impeller targets one class of jank. Layout, decoding and blocked Dart code still miss frames.

6. "You inherit a screen: one StatefulWidget with thousands of lines, API calls and logic inside. How do you refactor it safely?"

What is scored: incremental change with a safety net.

A strong answer covers:

  • Strangler approach: new structure next to the old code, then move one piece at a time.
  • First find the lifecycle leaks: controllers, subscriptions and timers that are never disposed. Fix those before redesigning anything.
  • Move API calls into a repository and logic into a ViewModel. Split the build method into small widgets.
  • Write tests for each extracted piece before moving the next.
  • Add structure only where it buys testability or clear ownership.

Follow-ups:

  • There are no tests at all today. What is your first test, and why that one?
  • Product wants a new feature on this screen next sprint. Do you refactor first?

Weak answer: "Rewrite it from scratch." A rewrite drops behaviour nobody wrote down, and the old bugs come back in new code.

7. "A third-party API keeps returning 500s. How do you keep the app usable?"

What is scored: resilience that does not make things worse.

A strong answer covers:

  • Retry only transient failures, with exponential backoff and a limit. In the snippet, ServerException is your own type for 5xx responses, so a 400 is never retried.
  • Serve the last good data from the local store and show that it may be stale.
  • If failures repeat, stop calling for a while (a circuit breaker) and show a clear message.
  • Writes need idempotency keys, or a retry can apply the same change twice.
Dart
Future<T> withRetry<T>(Future<T> Function() call, {int maxAttempts = 3}) async {
  for (var attempt = 1; ; attempt++) {
    try {
      return await call();
    } on ServerException {
      if (attempt >= maxAttempts) rethrow;
      await Future.delayed(Duration(milliseconds: 200 * (1 << attempt)));
    }
  }
}

Follow-ups:

  • Every client retries at the same moment when the API recovers. What do you add?
  • The failing call is a payment. Do you still retry?

Weak answer: "Retry until it works." Unbounded retries drain the battery and hit a struggling server harder.

8. "Should the next feature go into the existing native app as Flutter, or should Flutter replace the app?"

What is scored: a bounded bet with a way back.

A strong answer covers:

  • Add-to-app fits when one bounded feature gains from shared delivery and the native app must keep ownership of navigation, startup and platform integrations.
  • Decide before building: engine lifetime, route and result contracts, auth, analytics, accessibility, memory and release ownership.
  • Know the documented limits, such as no multiple Flutter libraries in one app, and on Android, AndroidX only.
  • Measure startup and transition cost on real devices. Expand feature by feature only if the data supports it, and keep a removal path.

Follow-ups:

  • The Flutter screen needs the logged-in user from the native app. How does it get it, and who owns refresh?
  • After a year, how do you decide whether to expand or remove it?

Weak answer: "Rewrite everything in Flutter, it is faster." It skips every contract between the old app and the new code.

9. "A Flutter framework bug blocks your release. Upstream fix or workaround?"

What is scored: owning a risk you do not control.

A strong answer covers:

  • Reduce it to a small sample on a supported Flutter version. Decide if it breaks documented behaviour, is platform-specific, belongs to a plugin, or comes from your own assumptions.
  • Ship a bounded workaround when the impact is urgent and the workaround is testable and removable.
  • Push for an upstream fix when the defect is general and the framework owns the behaviour.
  • Link the workaround to the issue, add a regression test, give it an owner, and remove it once the fixed version is your minimum.

Follow-ups:

  • The fix lands in a version that also has breaking changes. What is your upgrade plan?
  • Six months later, how do you know the workaround is still needed?

Weak answer: "We fork Flutter." A fork without an exit plan becomes a second framework you maintain forever.

10. "Half the app uses one state approach and a new lead wants another. How do you run that?"

What is scored: governance with evidence and a rollback.

A strong answer covers:

  • Define the problem and success measures before choosing a library.
  • Prove it on one hard but bounded flow, including tests, cancellation, diagnostics and performance.
  • Publish ownership rules, examples, lint guidance and a written decision record.
  • Do not rewrite stable features for uniformity alone. Migrate at feature boundaries, keep both working together during the move, and keep a rollback path.
  • Track defects and delivery time, and expand only when total team cost goes down.

Follow-ups:

  • Two teams refuse to migrate. What do you do?
  • The pilot shows no measurable gain. Do you stop?

Weak answer: "We migrate everything this quarter." Rewriting working code for consistency is cost with no user benefit.

What changed in 2024 to 2026

  • Merged threads. From Flutter 3.29 (February 2025), Dart code on Android and iOS runs 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)
  • Impeller is the only renderer on iOS, the default on Android API 29 and above, and the default on macOS, Linux and Windows as of Flutter 3.47. The web still uses Skia, and older or non-Vulkan Android devices fall back to OpenGL. (Impeller rendering engine, updated 21 August 2026)
  • Offline-first is an official design pattern page with read strategies, write strategies and sync triggers. It does not cover conflict resolution. (Offline-first support, updated 5 May 2026)
  • Architecture recommendations with strength levels, including go_router as recommended for most apps. (Architecture recommendations, updated 5 May 2026)

Say which Flutter version your project ships before you claim 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 senior Flutter loop, so treat any loop you read about online as one person's report. Senior rounds tend to lean on design and past decisions more than syntax.

Ask the recruiter what each round scores, whether there is a system design round, and whether you will talk about your own past work. Prepare two real stories you can defend under three follow-ups. For the design round, see mobile app architecture interview questions and staff mobile engineer interview questions.

Sources

These ten scenarios are a sample. The book has 500 questions, junior to staff, including the senior real-world scenarios and staff leadership prompts these come from, each with a direct answer and links to the official docs.