Shell: on wide split layouts the destination tabs sit under the list pane

The four destination buttons move from the bottom right over the detail
pane to the bottom of the list pane, centred in the (dragged) list width.
The list now keeps the bar's height as bottom clearance; the detail pane
clears only the system inset, so its tabs, the chat composer and the
artifact actions sit at its bottom edge. Phone layout is unchanged.
kStackedBarGap is gone with the stacked bars.
This commit is contained in:
2026-11-03 12:30:56 +00:00
parent d34185b56c
commit 40e94cc3da
11 changed files with 191 additions and 90 deletions
@@ -7,11 +7,6 @@ const double kFloatingBarWideWidth = 600;
/// The gap between a floating tab bar and the edges (and bottom safe area).
const double kFloatingBarMargin = 16;
/// The gap between two floating bars stacked at the bottom right of a wide
/// window: the shell's tab bar and, above it, an open item's own tabs (the
/// chat composer adds its own padding on top of this).
const double kStackedBarGap = 12;
/// [padding] with the floating bar's clearance added at the bottom.
///
/// A scrollable under a floating bar (see [FloatingBarOverlay] and the shell)
@@ -36,10 +36,16 @@ class FloatingDestinationBar extends StatefulWidget {
required this.onTap,
required this.items,
this.edge = FloatingBarEdge.bottom,
this.alignment,
});
final bool cupertino;
/// Where the row sits in the width it is given, at [FloatingBarEdge.bottom]:
/// the trailing end by default. The shell centres its tabs under the list
/// pane while a list shows beside an open item.
final AlignmentGeometry? alignment;
/// The edge the bar floats at. At [FloatingBarEdge.top] (an open item's
/// tabs under its pane's top bar) the bar sits at the leading edge, in line
/// with the bar's title, and keeps no bottom safe area.
@@ -149,7 +155,7 @@ class _FloatingDestinationBarState extends State<FloatingDestinationBar>
heightFactor: 1,
alignment: top
? AlignmentDirectional.topStart
: AlignmentDirectional.bottomEnd,
: widget.alignment ?? AlignmentDirectional.bottomEnd,
child: _row(context, constraints.maxWidth),
),
);