Make floating tab entrances pop sequentially

This commit is contained in:
2026-11-01 17:01:12 +00:00
parent 8687f0fc0d
commit b1d149d872
3 changed files with 67 additions and 16 deletions
+14 -2
View File
@@ -10,8 +10,20 @@ abstract final class Motion {
/// A section opening or closing, a bar changing its actions.
static const Duration standard = Duration(milliseconds: 200);
/// Delay between neighbouring controls entering as one group.
static const Duration tabEntranceStagger = Duration(milliseconds: 40);
/// Duration of each tab's entrance pop.
static const Duration tabEntranceDuration = Duration(milliseconds: 260);
/// Delay between neighbouring tabs entering as one group.
static const Duration tabEntranceStagger = Duration(milliseconds: 70);
/// The scale at which a tab starts its entrance pop.
static const double tabEntranceScaleBegin = 0.6;
/// The upward travel distance of a tab's entrance pop, in logical pixels.
static const double tabEntranceSlideDistance = 6;
/// The fraction of a tab's entrance spent fading in.
static const double tabEntranceOpacityPortion = 0.6;
static const Curve curve = Curves.easeOutCubic;