Top bar: every piece pops in like the tab buttons
One shared pop (pop_entrance.dart: PopTransition, popWindow, PopEntrance) drives the floating tab buttons and the top bar, on Motion.tabEntrance* (0.6 -> 1, 260 ms, 70 ms stagger, ease-out-back, glass fading in). SegmentedEntrance and the barEntrance* constants are gone. Back, the title, the actions pill and each action pop in turn from the leading edge (SegmentedEntrancePlanner). A lone action pops once, with its pill. A newcomer pops alone. Rebuilds and title changes never replay it. The shell passes published actions one by one, keyed by their screen (actionsKey), not as one cross-fading Row. The chat thread's model and mode are separate actions. The folder picker now uses SegmentedBar.
This commit is contained in:
@@ -20,7 +20,9 @@ above the shell row).
|
||||
the gaps over the content.
|
||||
- Entrance: each whole button pops in (0.6 -> 1, ease-out-back, 70 ms
|
||||
stagger), its glass fading through `GlassReveal`; only when the bar first
|
||||
builds or its tab set changes.
|
||||
builds or its tab set changes. The pop (`PopTransition`, `popWindow` in
|
||||
`pop_entrance.dart`) is shared with every piece of the top bar
|
||||
(`topbar-island-motion.md`).
|
||||
- Press: `SegmentedPress`, as in the top bar; Material keeps its circular ink.
|
||||
- Semantics: the row is a `SemanticsRole.tabBar`; each button a merged
|
||||
`SemanticsRole.tab` button with its selected state, named by its label, and
|
||||
|
||||
@@ -1,15 +1,34 @@
|
||||
# Top bar island motion and press feedback
|
||||
|
||||
- Entrance: each island of `SegmentedBar` (Back, title or field pill, actions
|
||||
pill, and each action inside the pill) is a `SegmentedEntrance`
|
||||
(`lib/ui/adaptive/segmented_bar_motion.dart`). It scales in from 0.85 with
|
||||
`easeOutBack` over 240 ms and fades in. On the bar's first frame the islands
|
||||
are staggered 40 ms apart from the leading edge. An island added later pops
|
||||
in straight away. Actions that arrive together with their pill don't pop a
|
||||
second time. The islands are keyed by role, and actions by their key (or
|
||||
their type and position), so a rebuild, a new title or a shell tab switch
|
||||
keeps the pills that are already there. Under reduced motion nothing
|
||||
animates.
|
||||
- Entrance: the top bar pops in exactly like the floating tab buttons. Both
|
||||
use `lib/ui/adaptive/pop_entrance.dart` (`PopTransition`, `popWindow`; the
|
||||
self-driven `PopEntrance` for the bar) and the `Motion.tabEntrance*`
|
||||
constants: from 0.6, rising 6 px, `easeOutBack` over 260 ms, fading in
|
||||
over the first 60%, 70 ms apart. The old 0.85/240 ms/40 ms bar constants
|
||||
and `SegmentedEntrance` are gone.
|
||||
- Each piece pops on its own: Back, the title or field pill, the actions
|
||||
pill, and each action in it. `SegmentedEntrancePlanner`
|
||||
(`segmented_bar_entrance.dart`) times them. On the bar's first frame they
|
||||
go in turn from the leading edge: Back, title, pill, then each action left
|
||||
to right. A lone action is the whole pill, so it pops once, with the pill.
|
||||
A pill that turns up later pops at once and its actions follow it in turn.
|
||||
An action added to a pill that is already there pops alone. Pieces are keyed
|
||||
by role and actions by identity (their key, or their type and position,
|
||||
within `SegmentedBar.actionsKey`), so a rebuild, a new title or scrolling
|
||||
never replays them. Under reduced motion nothing animates.
|
||||
- Shell tab switch: the shell passes the open screen's owner as
|
||||
`actionsKey` and its published actions one by one. It used to wrap them in
|
||||
one cross-fading `Row`, which made them a single action. On a switch Back
|
||||
and the title stay put, and the new screen's actions pop in turn. A screen
|
||||
republishing its bar keeps them.
|
||||
- Actions after the first keep their natural width, capped at an even share
|
||||
of the pill. That keeps the chat's mode beside the model, and icons in a
|
||||
narrow split pane squeeze instead of overflowing.
|
||||
- Rerouted bars: the chat thread's model and permission mode used to be one
|
||||
`LayoutBuilder` `Row` action and are now two actions. The folder picker
|
||||
used a stock `AppBar` / `CupertinoNavigationBar` and is now a
|
||||
`SegmentedBar` (round Back that climbs a folder, title, Cancel). Every other
|
||||
screen already built its bar through `SegmentedBar` with separate actions.
|
||||
- Glass fades through `GlassReveal` (`glass_pill.dart`): the fill, the hairline,
|
||||
the blur sigma and the content fade together. An opacity layer would hide
|
||||
the backdrop from `BackdropFilter.grouped` until the fade ended. Grouping is
|
||||
@@ -22,3 +41,6 @@
|
||||
when there are several. Native ink and Cupertino dimming still show.
|
||||
- Evidence: films at 560x900 in Material and Cupertino, light and dark, are in
|
||||
`/tmp/topbar-evidence/` (strips `strip-*.png`, zoomed presses `zoom-press*.png`).
|
||||
The shared pop is filmed in `/tmp/topbar-pop/` (`material/`, `cupertino/`:
|
||||
Pipelines <-> Runs, Search, run detail, Chat list and thread; `folder-*`:
|
||||
the folder picker; `strip-*.png` stack the bar of every frame).
|
||||
|
||||
Reference in New Issue
Block a user