Animate and space floating tab bars

This commit is contained in:
2026-11-01 13:13:15 +00:00
parent fea3d770b4
commit 4007599c99
4 changed files with 252 additions and 36 deletions
+2 -9
View File
@@ -78,17 +78,10 @@ void main() {
expect(rect.right, 1200 - 16);
expect(rect.bottom, 800 - 16);
expect(rect.width, lessThan(1200 * 0.6));
// Four icon-only tabs (Settings opens from the Pipelines bar) and one
// more edge gap, so the outer circles keep it from the sides.
// Four icon-only tabs, with the wider neighbour gaps derived by the bar.
expect(
rect.width,
4 *
(cupertino
? FloatingDestinationBar.cupertinoTabWidth
: FloatingDestinationBar.materialTabWidth) +
(cupertino
? FloatingDestinationBar.cupertinoEdgeGap
: FloatingDestinationBar.materialEdgeGap),
FloatingDestinationBar.pillWidth(cupertino: cupertino, tabs: 4),
);
// No rail or sidebar: the content starts at the left edge.
expect(find.byType(NavigationRail), findsNothing);