SocialBase: Accessible Corporate Chat

Corporate chat delivered in six months, with screen-reader support and a later Firestore redesign cutting direct I/O costs by approximately 90%.

SocialBase: Accessible Corporate Chat

Conceptual cover illustration.

Production mobile chat · First Flutter project · ~90% lower I/O cost

Context

The first Flutter project became a production corporate messenger within six months, covering messages, audio, groups, files, notifications, and people discovery.

Screen-reader navigation extended the original scope. Feedback from a visually impaired employee later highlighted the experience's value for workplace inclusion.

A subsequent review addressed excessive Firestore costs in the related Vue.js web chat.

Challenge

Deliver a complete mobile chat while learning Flutter and supporting accessibility.

Later, per-message read receipts multiplied Firestore operations across message history and group participants, creating disproportionate costs.

Approach

Flutter/BLoC made conversation states explicit, with screen-reader semantics for core actions.

The web chat replaced per-message read updates with one last-read timestamp per participant. Unread state is derived by comparing message times.

Direct I/O costs fell approximately 90%, from about R$2,000 to R$200 per month, according to Firebase billing history.

Workflow

  1. 01

    Persist the message

    Text, audio, file, and group messages enter the realtime conversation store.

  2. 02

    Observe the legacy read fan-out

    Marking a conversation as read rewrote prior messages instead of advancing one read position.

  3. 03

    Expose the group multiplier

    Per-message writes and reads multiplied across the message history and every group participant.

  4. 04

    Store one last-read position

    A participant-level timestamp at the conversation-room boundary replaces repeated updates to historical messages.

  5. 05

    Derive unread state

    The client compares message time with the participant's last-read position, reducing direct Firestore I/O cost by approximately 90%.

SocialBase Chat screens showing realtime messages, people list, group creation, and white-label themes
The production Flutter experience included realtime messages, groups, files, audio, notifications, white-label themes, and accessibility support. Names, counts, and marketing statements in the source artwork are illustrative and are not project evidence.

Capabilities

  • Flutter app with BLoC state management.

  • Realtime text, audio, files, links, people, and groups.

  • Notifications and the core flows of a corporate messenger.

  • Screen-reader semantics and accessible navigation.

  • Related Vue.js and Firestore web-chat optimization.

  • Participant-level last-read position instead of per-message updates.

Results

  • This was my first Flutter project, and I delivered the production mobile chat within six months.

  • The shipped experience covered text/audio messages, groups, files, links, notifications, and people or conversation navigation.

  • Screen-reader support was added on my initiative beyond the original delivery scope.

  • The team received qualitative feedback from one visually impaired employee at a client company who described feeling more included while working remotely during the pandemic.

  • Firestore documentation and cost analysis traced the web-chat expense to per-message read-state updates multiplied across group participants.

  • A participant-level last-read timestamp reduced direct chat I/O operating cost by approximately 90%.

    Firebase billing history fell from about R$2,000 to R$200 per month.

Product delivery, accessibility & cost redesign

Trade-offs

  • Learning Flutter while delivering a production product increased the implementation challenge.

    BLoC and explicit state boundaries kept the growing chat flows understandable instead of hiding them in ad hoc UI state.

  • Screen-reader support added semantic and navigation work beyond the original scope.

    However, made the core communication journey available to employees who otherwise faced an access barrier.

  • Per-message read markers provided granular state but created document-I/O amplification.

    A participant-level last-read position sacrificed unnecessary historical updates while preserving the product's required unread behavior.

  • The cost redesign targeted the separate Vue.js/Firestore web chat.

    Meanwhile, the six-month delivery and accessibility work refer to the Flutter mobile experience.

Problems solved along the way

  • Turned a first experience with Flutter into a production corporate chat delivered within six months.

  • Implemented the everyday communication flows required for text, audio, files, people, and groups.

  • Added screen-reader compatibility before it was requested as a formal product requirement.

  • Identified per-message read updates and group fan-out as the root cause of excessive Firestore I/O.

  • Replaced repeated history updates with one bounded last-read position and reduced direct I/O cost by approximately 90%.

Technology

FlutterBLoCRealtime ChatAccessibilityScreen Readers

Let's build something amazing?

We are ready to understand your technical challenge and propose the best architecture. Contact us for an initial consultation without commitment.

OnTimeStack

© 2026 OnTimeStack. All rights reserved.

Let's talk?Privacy Policy
Designed by Sarah Ninsi