feat: dsh-style composer and model chip

Follow dsh-Go's input bar (MIT, referenced rather than copied):

- one rounded capsule holding a leading 36px attach key, a borderless
  auto-growing field, the context usage ring and a trailing 36px key that
  sends, or becomes the stop button while a turn runs (the hint says
  "still typing while generating")
- attachment chips show image thumbnails above the capsule
- the app bar shows the current model and agent as a chip that opens the
  model/agent picker, now a segmented control
- light haptic on send
This commit is contained in:
blumia committed 2026-11-18 20:48:12 +08:00
1 parent 885a27c6a9
commit 782ac2bd4d
3 files changed
+192 -77

No files matched your search

+5 -2
View File
@@ -23,8 +23,11 @@ revert, attachments (photos/files), permissions. Android 7.0 (API 24)+.
Markdown rendering reuses **`gpt_markdown`** (BSD-3), the Flutter AI-output renderer
that [dsh-Go](https://github.com/ccch1mneyyy/dsh-go) uses: streaming-friendly,
syntax-highlighted code blocks with copy, tables, LaTeX and task lists. Read-aloud
(TTS) is intentionally **not** implemented (matching the original).
syntax-highlighted code blocks with copy, tables, LaTeX and task lists. The input
bar and the model chip follow dsh-Go's composer design (MIT, referenced rather
than copied): a rounded capsule, a leading attach key, an auto-growing borderless
field, the usage ring, and a 36px send/stop key that morphs while a turn runs.
Read-aloud (TTS) is intentionally **not** implemented (matching the original).
## Run