Commit e9fe39e5 authored by Adam Barth's avatar Adam Barth

Explicitly specify linear curves (#3973)

We now required the curve parameter for CurvedAnimation.
parent d6548133
......@@ -384,6 +384,7 @@ class _PopupMenuRoute<T> extends PopupRoute<T> {
Animation<double> createAnimation() {
return new CurvedAnimation(
parent: super.createAnimation(),
curve: Curves.linear,
reverseCurve: new Interval(0.0, _kMenuCloseIntervalEnd)
);
}
......
......@@ -46,7 +46,8 @@ abstract class RenderToggleable extends RenderConstrainedBox implements Semantic
value: _value ? 1.0 : 0.0
);
_position = new CurvedAnimation(
parent: _positionController
parent: _positionController,
curve: Curves.linear
)..addListener(markNeedsPaint)
..addStatusListener(_handlePositionStateChanged);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment