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:
2026-11-02 21:57:26 +00:00
parent badf858124
commit 6fcdbcaec2
4 changed files with 30 additions and 3 deletions
+4
View File
@@ -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);