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:
@@ -43,9 +43,10 @@ abstract final class Motion {
|
||||
/// The icon's scale at the top of its bounce.
|
||||
static const double tabBounceScale = 1.08;
|
||||
|
||||
/// How much larger the selected tab's icon is than the others; it grows
|
||||
/// and shrinks with the selection tint.
|
||||
static const double tabSelectedIconScale = 1.15;
|
||||
/// How much larger the selected tab's button (and its icon) is than the
|
||||
/// others; it grows and shrinks with the selection tint, and its
|
||||
/// neighbours keep their gaps to it.
|
||||
static const double tabSelectedScale = 1.2;
|
||||
|
||||
/// Duration of each top-bar island's entrance pop (Back, title, actions).
|
||||
static const Duration barEntranceDuration = Duration(milliseconds: 240);
|
||||
|
||||
Reference in New Issue
Block a user