Show each floating tab as its own round glass button
Replace the single glass pill (host NavigationBar/CupertinoTabBar with one gliding highlight) with a row of separate circular GlassPill buttons, 52/50 px with 12/10 px gaps, at the same bottom-right place. The selected button fills with the host selection tint and cross-fades; each button pops in on its own, staggered, only when the bar appears or its tabs change; presses sink like the top bar's. Tab semantics, keys, tooltips and badges are kept; the row shares one BackdropGroup for its blurs.
This commit is contained in:
@@ -34,12 +34,8 @@ abstract final class Motion {
|
||||
/// The fraction of a tab's entrance spent fading in.
|
||||
static const double tabEntranceOpacityPortion = 0.6;
|
||||
|
||||
/// How long a tab bar's selection highlight takes to glide to a new tab.
|
||||
static const Duration tabHighlightDuration = Duration(milliseconds: 250);
|
||||
|
||||
/// The highlight's width, relative to its height, halfway through a move;
|
||||
/// it is a circle again at rest.
|
||||
static const double tabHighlightStretch = 1.25;
|
||||
/// How long a tab button's selection tint takes to cross-fade.
|
||||
static const Duration tabSelectDuration = Duration(milliseconds: 220);
|
||||
|
||||
/// The newly selected tab icon's brief bounce.
|
||||
static const Duration tabBounceDuration = Duration(milliseconds: 180);
|
||||
|
||||
Reference in New Issue
Block a user