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:
2026-11-03 00:30:44 +00:00
parent 2176b396ac
commit 05798a56c8
14 changed files with 709 additions and 457 deletions
+14 -21
View File
@@ -19,21 +19,30 @@ abstract final class Motion {
/// The point at which the incoming tab begins to appear.
static const double tabFadeThroughIncomingAt = 0.35;
/// Duration of each tab's entrance pop.
// The entrance pop below is shared by the floating tab buttons and every
// piece of the top bar (Back, the title, the actions pill and each action
// in it); see `PopEntrance`.
/// Duration of each item's entrance pop.
static const Duration tabEntranceDuration = Duration(milliseconds: 260);
/// Delay between neighbouring tabs entering as one group.
/// Delay between neighbouring items entering as one group (tabs, or the
/// top bar's pieces from the leading edge).
static const Duration tabEntranceStagger = Duration(milliseconds: 70);
/// The scale at which a tab starts its entrance pop.
/// The scale at which an item starts its entrance pop.
static const double tabEntranceScaleBegin = 0.6;
/// The upward travel distance of a tab's entrance pop, in logical pixels.
/// The upward travel distance of an item's entrance pop, in logical
/// pixels.
static const double tabEntranceSlideDistance = 6;
/// The fraction of a tab's entrance spent fading in.
/// The fraction of an item's entrance spent fading in.
static const double tabEntranceOpacityPortion = 0.6;
/// The gentle overshoot of an item's entrance pop.
static const Curve tabEntranceCurve = Curves.easeOutBack;
/// How long a tab button's selection tint takes to cross-fade.
static const Duration tabSelectDuration = Duration(milliseconds: 220);
@@ -48,22 +57,6 @@ abstract final class Motion {
/// neighbours keep their gaps to it.
static const double tabSelectedScale = 1.2;
/// Duration of each top-bar island's entrance pop (Back, title, actions).
static const Duration barEntranceDuration = Duration(milliseconds: 240);
/// Delay between neighbouring top-bar islands entering together, from the
/// leading edge.
static const Duration barEntranceStagger = Duration(milliseconds: 40);
/// The scale at which a top-bar island starts its entrance.
static const double barEntranceScaleBegin = 0.85;
/// The fraction of an island's entrance spent fading in.
static const double barEntranceOpacityPortion = 0.6;
/// The gentle overshoot of an island's entrance.
static const Curve barEntranceCurve = Curves.easeOutBack;
/// How long a pressed top-bar control takes to sink.
static const Duration barPressDuration = Duration(milliseconds: 90);