Engineering Notes
Mobile Architecture3 min readUpdated

Building a White-Label Flutter App on a Shared Django Backend

Where branding belongs, where permission decisions belong, and how I kept a branded institute app on the same backend as the shared app.

White-Label Mobile AppFlutterBLoCDjangoREST APIMulti-Tenancy
On this page

A branded mobile app should feel like the institute's own product. It might have a different logo, different resource access, and its own student login flow. When I worked on a white-label institute app for our education platform, the first real question was not about screens. It was: what should be specific to the institute, and what should stay common to the shared platform?

Building a second backend with copied models and APIs would have answered that quickly, and left us with another system to maintain forever. I wanted the institute app to reuse the existing Django services while still respecting the institute's identity.

Two apps, one backend

Both the institute's branded app and the shared platform app talk to the same backend. That backend handles students, categories, resources, tests, results, and related academic operations. Flutter is responsible for the mobile experience. Django stays responsible for the business rules and data access.

  1. Institute app, or Shared platform app
  2. Flutter UI, or Flutter UI
  3. BLoC + repository, or BLoC + repository
  4. Django REST API
  5. Tenant + user checks
  6. PostgreSQL
Two Flutter apps sharing one Django backend

The principle I keep coming back to: branding belongs in the client, permission decisions belong on the server.

Hiding a button in Flutter is not access control. If a student calls the underlying endpoint directly, the backend still has to check that the resource belongs to the student's institute and that the student has access to it. This is the same tenant boundary described in Designing a Multi-Tenant Education Platform, seen from the mobile side.

Keeping the existing BLoC structure

The existing Flutter code already used BLoC, so I chose to keep that structure and improve how it connects to the backend instead of introducing a new architecture. As an app grows, screens get hard to manage if every widget makes its own API calls and keeps its own copy of the response. A clear split of responsibilities avoids that:

LayerResponsibility
UIRender the current state and handle user interaction
BLoCCoordinate loading, success, empty, and failure states
Repository / APIMake requests, parse responses, return structured errors

The split pays off most when something goes wrong. If a dashboard shows stale data, I can check each layer separately: did the API return old data, did the repository cache it, or did the BLoC fail to emit a new state? I go through that kind of investigation in What I Look for When Debugging a Flutter Exam App.

Tenant context is part of the API contract

A branded institute app needs a reliable way to identify its tenant. The shared app has a different requirement: it serves institutes that do not publish their own mobile app. That difference raises real questions about login destinations, session refresh, branding, and account access.

I treat tenant context as part of the authentication and API contract, not as a user-editable preference. For every request, the backend needs enough trusted context to validate both the institute and the user. The mobile app should never assume that sending a tenant ID is enough to get access.

Reusing logic without copying problems

Most of my work here was reviewing how the two Flutter projects handle the same concerns: authentication, API services, token handling, notifications, resources, and student flows. My priority was to keep the existing APIs and BLoC patterns rather than rebuild everything around something new.

Exams and results are where this matters most. Inconsistent state or duplicate requests in those flows directly affect a student's experience, so they get the most careful review.

A white-label app should differ where the institute needs it to, and stay shared where engineering consistency matters. Changing logos is the easy part. Keeping authentication, tenant isolation, API contracts, and maintenance predictable across several apps is the actual work.

Related reading