Engineering Notes
Debugging and Reliability3 min readUpdated

What I Look for When Debugging a Flutter Exam App

Submission delays, stale dashboards, resource viewers, and navigation: how I investigate problems in a mobile exam flow, and how I prioritise them.

White-Label Mobile AppFlutterBLoCAPIDebuggingMobile UX
On this page

A mobile app can look complete in screenshots and still have plenty of problems in real use. I saw this while reviewing a white-label institute learning app connected to our shared education platform backend.

Most of the issues were not visual. They involved loading time, stale data, wrong navigation, resource display, and uncertainty during exam submissions. These are the bugs that cost a student's trust, even when the screen design is good. The main thing I changed in how I work was to debug the flow, not just the screen in front of me.

This note is a mix of things I have diagnosed and directions I think are right. Where something is a proposed design rather than a deployed fix, I say so.

Exam submission: what state is the student actually in?

When a student taps Submit, the app sends answers to Django, the backend saves the attempt, and a result is returned or becomes available later. When that response is slow, the student may tap again or close the app.

Making the spinner faster is not the question. The questions I care about are:

  • Did the backend receive the attempt?
  • Was it saved once, or more than once?
  • Is the result ready, or is the client still waiting?
  • What happens if the network drops after the save but before the response arrives?

A reliable design represents the submission as explicit states, with a recovery path for errors:

  1. Ready
  2. Submitting
  3. Confirmed by server
  4. Result available
Proposed submission states

Where it applies, a server-side idempotency rule is worth considering, so that a retry does not create a duplicate attempt. This is a design direction, not a claim that every part of it is deployed.

Stale dashboard data is usually a state problem

Another issue I reviewed was dashboard data that did not refresh as expected, including progress and streak information after a student completed an activity.

With BLoC, I trace the path from the API response through the repository to the emitted state:

  1. Did the refresh event actually run?
  2. Did the server return the latest data?
  3. Is the screen showing a stale local value instead of the new response?

I prefer fixing the real data flow over forcing the screen to reload every time. A full reload can hide the bug, and it adds network requests that were never needed. The layer split that makes this tracing possible is described in Building a White-Label Flutter App on a Shared Django Backend.

Resource viewers need their own rules

Learning resources include documents, uploaded files, and videos. A viewer that only works inside a small content panel gets frustrating fast, especially when the student rotates the phone or opens a long PDF.

For this app, I reviewed the need for:

  • full-screen viewing outside the bottom navigation area
  • correct portrait and landscape handling
  • restoring system UI settings when the viewer closes

The detail that is easy to miss is cleanup. If a screen changes orientation or system overlays, it has to restore them on exit, including on error paths.

Prioritising the bug list

A long bug list needs an order. I separate issues into data correctness, access control, exam reliability, broken navigation, media handling, and visual polish. A text overflow is worth fixing, but it should never outrank an exam result that was saved incorrectly, or a student seeing the wrong resource.

I also keep acceptance conditions concrete. A flow counts as fixed when:

  • it uses the real API, not mocked data
  • the tenant context is correct
  • loading and error states are handled
  • it still works after restarting the app

Mobile reliability does not come from adding more loading indicators. It comes from predictable API contracts, consistent state transitions, clear error handling, and testing the whole user journey. That is how I approach these Flutter apps: fix the cause, keep the existing architecture where it works, and validate the full flow.

Related reading