Tabs: the selected button grows about 20%, neighbours keep their gaps
The selected tab's whole button (62 px Material, 60 px Cupertino, from 52/50) and its icon grow with the selection in the layout, so the other buttons move over and every gap stays the same; the previous selection shrinks back. The row is as tall as the selected button with the others centred on it.
This commit is contained in:
@@ -156,11 +156,6 @@ class FloatingTabButton extends StatelessWidget {
|
||||
),
|
||||
child: FloatingTabBounce(motion: motion, index: index, child: icon),
|
||||
);
|
||||
// The selected icon is a little larger, growing with the selection.
|
||||
glyph = Transform.scale(
|
||||
scale: 1 + (Motion.tabSelectedIconScale - 1) * t,
|
||||
child: glyph,
|
||||
);
|
||||
final reveal = GlassReveal.maybeOf(context);
|
||||
if (reveal != null) {
|
||||
// The icon sits above the glass, so it fades with it here.
|
||||
|
||||
Reference in New Issue
Block a user