1// Copyright 2014 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5import 'package:flutter/animation.dart';
6
7// The easing curves of the Material Library
8
9/// The standard easing curve in the Material 2 specification.
10///
11/// Elements that begin and end at rest use standard easing.
12/// They speed up quickly and slow down gradually, in order
13/// to emphasize the end of the transition.
14///
15/// See also:
16/// * <https://material.io/design/motion/speed.html#easing>
17@Deprecated(
18 'Use Easing.legacy (M2) or Easing.standard (M3) instead. '
19 'This curve is updated in M3. '
20 'This feature was deprecated after v3.18.0-0.1.pre.',
21)
22const Curve standardEasing = Curves.fastOutSlowIn;
23
24/// The accelerate easing curve in the Material 2 specification.
25///
26/// Elements exiting a screen use acceleration easing,
27/// where they start at rest and end at peak velocity.
28///
29/// See also:
30/// * <https://material.io/design/motion/speed.html#easing>
31@Deprecated(
32 'Use Easing.legacyAccelerate (M2) or Easing.standardAccelerate (M3) instead. '
33 'This curve is updated in M3. '
34 'This feature was deprecated after v3.18.0-0.1.pre.',
35)
36const Curve accelerateEasing = Cubic(0.4, 0.0, 1.0, 1.0);
37
38/// The decelerate easing curve in the Material 2 specification.
39///
40/// Incoming elements are animated using deceleration easing,
41/// which starts a transition at peak velocity (the fastest
42/// point of an element’s movement) and ends at rest.
43///
44/// See also:
45/// * <https://material.io/design/motion/speed.html#easing>
46@Deprecated(
47 'Use Easing.legacyDecelerate (M2) or Easing.standardDecelerate (M3) instead. '
48 'This curve is updated in M3. '
49 'This feature was deprecated after v3.18.0-0.1.pre.',
50)
51const Curve decelerateEasing = Cubic(0.0, 0.0, 0.2, 1.0);
52