009bf3d853
Each island (Back, title, actions pill, each action) scales in from 0.85 with a gentle overshoot, staggered from the leading edge on first show and at once when it newly appears; rebuilds and title changes keep it. Glass fades its fill and blur together so backdrop grouping is unchanged. Every tappable piece sinks to 0.94 under a stadium tint while pressed and springs back. Reduced motion skips the animation.
25 lines
1.6 KiB
Markdown
25 lines
1.6 KiB
Markdown
# 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.
|
|
- 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
|
|
unchanged (checked in `test/ui/adaptive/segmented_bar_motion_test.dart`).
|
|
- Press: `SegmentedPress` listens for pointer events only, so tap targets and
|
|
hit testing are unchanged. While pressed it sinks to 0.94 in 90 ms under a
|
|
stadium tint (text colour at 14%), then springs back. A quick tap plays the
|
|
full press first. It wraps Back, a pressable title (and the title action
|
|
separately when expanded), a lone action as its whole pill, and each action
|
|
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`).
|