1.4 KiB
1.4 KiB
Chat composer pops in with the bar
- The composer's glass pill (
chat_composer_bar.dart) is wrapped in the sharedPopEntrance(lib/ui/adaptive/pop_entrance.dart), glass mode, no delay: it pops with the bar's pieces using the sameMotion.tabEntrance*pop, its blur fading throughGlassReveal. No new animation or constants. - Once per chat appearance:
ChatComposerBaris 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, whichflutter_test_config.dartdisables 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-*.pngin/tmp/a646-capstack 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.