Reply Study

← App map · An email client study with six mailboxes, swipe to star or delete, an expanding mail view, search and compose.

Screenshots scroll sideways · tap to enlarge

What it does

Reply is its own MaterialApp at /reply, sharing one EmailStore (a ChangeNotifier provided with Provider) between every screen. The store holds 15 built-in emails split into inbox, outbox and drafts, and derives six mailboxes from them — Inbox, Starred, Sent, Trash, Spam and Drafts — by filtering on starred and trashed ids; emails 7 and 8 start in the trash. On a phone the mailbox sits above an animated bottom app bar: tapping the Reply logo pulls up a bottom drawer to 40 % with the mailbox list and folders, and picking one sets selectedMailboxPage. Swiping a card right past 80 % moves it to the trash; swiping left past 40 % stars it in place (and on the Starred mailbox removes it). Tapping a card expands it into the full mail view with a container transform, and sets selectedEmailId, which turns the FAB into a reply button. The search icon swaps the mailbox for SearchPage with a fade-through, and the FAB opens ComposePage the same way. On desktop the same store drives a navigation rail with a folder list and keeps the open mail inside a nested navigator.

Logic class diagram

One store is the single source of truth; every widget selects the part it needs and rebuilds on notifyListeners.

Screen widget composition

The phone layout keeps the app bar, drawer and FAB fixed and swaps only the body.

Star an email, then read it sequence

Swipes and taps only write to the store; the lists rebuild themselves.

Key files