Chat composer pops in with the bar when a chat opens
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# Chat composer pops in with the bar
|
||||
|
||||
- The composer's glass pill (`chat_composer_bar.dart`) is wrapped in the shared
|
||||
`PopEntrance` (`lib/ui/adaptive/pop_entrance.dart`), glass mode, no delay: it
|
||||
pops with the bar's pieces using the same `Motion.tabEntrance*` pop, its blur
|
||||
fading through `GlassReveal`. No new animation or constants.
|
||||
- Once per chat appearance: `ChatComposerBar` is keyed by the session
|
||||
(`chat-composer-<id>`), so opening or switching a chat (a tap, Ctrl+1-9)
|
||||
builds a new entrance; typing, the keyboard, sheets and other rebuilds keep
|
||||
the decided one. Reduced motion (`MediaQuery.disableAnimations`): it appears.
|
||||
- It only paints (transform + fade), so the field keeps its layout and takes
|
||||
focus and typing while it plays; the transcript does not move.
|
||||
- Tests: `test/features/chat/chat_composer_entrance_test.dart` (opts back into
|
||||
platform animations, which `flutter_test_config.dart` disables for chat tests).
|
||||
- Evidence (probe app, Material dark): `/tmp/a646-cap/desktop/open`
|
||||
(1280x800 open), `/tmp/a646-cap/switch/switch` (chat 1 -> 2),
|
||||
`/tmp/a646-cap/phone/open` (560x1000); `strip-*.png` in `/tmp/a646-cap`
|
||||
stack the bar and composer bands of every frame. Title and composer fade in
|
||||
small together, overshoot slightly and settle.
|
||||
- There is no "Next chat" command on this branch; any future one goes through
|
||||
the same keyed composer.
|
||||
Reference in New Issue
Block a user