Tabs: the selected tab's icon is a little larger
The selected icon grows to 1.15x with the selection tint (220 ms, same curve) and shrinks back when another tab is selected, on every floating tab bar; reduced motion jumps straight to the size.
This commit is contained in:
@@ -43,6 +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;
|
||||
|
||||
/// 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