feat: app bar and thread drawer in the example - #38
Open
divyanshub024 wants to merge 5 commits into
Open
Conversation
divyanshub024
force-pushed
the
feat/message-menu-and-text-selection
branch
from
August 29, 2026 22:16
51e42af to
bc6e368
Compare
divyanshub024
force-pushed
the
feat/example-thread-drawer
branch
from
August 29, 2026 22:16
4adc173 to
690dc0b
Compare
divyanshub024
force-pushed
the
feat/message-menu-and-text-selection
branch
from
August 30, 2026 07:43
bc6e368 to
f7a766e
Compare
divyanshub024
force-pushed
the
feat/example-thread-drawer
branch
from
August 30, 2026 07:44
690dc0b to
b25f82a
Compare
divyanshub024
force-pushed
the
feat/message-menu-and-text-selection
branch
from
August 30, 2026 08:07
f7a766e to
f14a149
Compare
divyanshub024
force-pushed
the
feat/example-thread-drawer
branch
from
August 30, 2026 08:07
b25f82a to
2afa483
Compare
divyanshub024
force-pushed
the
feat/message-menu-and-text-selection
branch
from
August 30, 2026 08:24
f14a149 to
b5bb110
Compare
divyanshub024
force-pushed
the
feat/example-thread-drawer
branch
from
August 30, 2026 08:24
2afa483 to
3909fce
Compare
divyanshub024
force-pushed
the
feat/message-menu-and-text-selection
branch
from
August 30, 2026 08:36
b5bb110 to
7630fb1
Compare
divyanshub024
force-pushed
the
feat/example-thread-drawer
branch
from
August 30, 2026 08:36
3909fce to
1809303
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1809303. Configure here.
divyanshub024
force-pushed
the
feat/example-thread-drawer
branch
from
August 30, 2026 08:45
1809303 to
7abb40f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
The example gets app chrome: a flat
AppBarin the Flow tokens with the thread's title (its opening question), a drawer button and a new-chat action, and aDrawerholding aFlowThreadListover the screen's conversations. Stacked on #37._messagesis the active one, so the chat wiring is unchanged. Switching threads stops any stream and clears the pending attachments.FlowChatViewre-reads its jump-to-latest state from the thread's first metrics, so a thread keyed per conversation does not carry the last one's button.Screenshots
How this was verified
flutter analyzeclean inexample/;dart format .applied.Checklist
flutter analyze libandflutter analyzeinexample/andplayground/are cleandart format .applieddependencies:inpubspec.yamlis flutter.dev-published, forces no configuration on hosts that never use the feature, and is argued in this PRlib/flow_ui.dartand documented indocs/and the README tableCHANGELOG.mdupdated for user-facing changes, with breaking changes called outfeat:,fix:,refactor:,docs:,chore:)Note
Low Risk
Example-app-only UI and local state; no package API or auth/network changes.
Overview
The example chat screen gains multi-conversation hosting and navigation chrome, without changing the
flow_uipackage.Message state moves from a single list into a thread map with an active id;
_messagesstays a getter/setter on the active thread so send/stream logic is largely unchanged. Users can open threads and start new chats from a Flow-styled AppBar (title from the first user message) and a drawer wired toFlowThreadList. Per-thread composer drafts are saved when switching; switching also stops in-flight generation and clears pending attachments. Streaming and late image measurement call_updatewith the originating thread id so replies still land on the right conversation if the user navigates away mid-stream.FlowThreadgets aValueKeyper thread for separate scroll state, and_stopno-ops when nothing is generating.Reviewed by Cursor Bugbot for commit 1809303. Bugbot is set up for automated code reviews on this repo. Configure here.