Animate mobile chat swaps as overlapping raised cards
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# Mobile crossing-card quick switch
|
||||
|
||||
The incoming chat and outgoing chat exchange positions together. The incoming
|
||||
card grows ahead of the outgoing one shrinking, paints in front, and lifts with
|
||||
rounded corners and a theme shadow before settling flush. The default duration
|
||||
is 480 ms; the global animation speed still scales its ticker once. Reduced
|
||||
motion settles immediately. The existing bounded backdrop covers vacated areas.
|
||||
|
||||
Changed source: workspace/chat_pane_switch_motion.dart, chat_workspace.dart,
|
||||
and chat_pane_swap_card.dart. The live transcript still receives its actual
|
||||
animated constraints; no full-height overflow viewport was introduced.
|
||||
|
||||
Verification:
|
||||
- `tool/memwatch/full.sh test/features/chat`: 957 passed, zero failed/skipped;
|
||||
peak 2160 MB, 72 s. Log `/tmp/memwatch/out.MYOugN`.
|
||||
- `tool/analyze.sh`: clean.
|
||||
- Fixture web build succeeded. Browser interactions and inspected film sheets:
|
||||
`/tmp/review/mobile-card-swap-light/01-film-label-Expand-Fixture-chat-1-sheet.png`
|
||||
and `/tmp/review/mobile-card-swap-cupertino/01-film-label-Expand-Fixture-chat-1-sheet.png`.
|
||||
- The material fixture's final small pane viewport is 198.8 px; its scroll offset
|
||||
equals max (688.6), so the content bottom remains reachable.
|
||||
- Regression checks cover overlapping cards, incoming paint order, retained
|
||||
drafts/scroll, uninterrupted rectangle/reveal continuity when reversing, and
|
||||
reduced motion. A premature role change initially caused a height jump during
|
||||
reversal; current geometry is now sampled before changing the incoming role.
|
||||
|
||||
These are browser and widget checks, not native Android device verification.
|
||||
Reference in New Issue
Block a user