Make floating tab entrances pop sequentially
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user