diff --git a/packages/flutter/lib/src/material/popup_menu.dart b/packages/flutter/lib/src/material/popup_menu.dart index d12fdf339e..30483b9295 100644 --- a/packages/flutter/lib/src/material/popup_menu.dart +++ b/packages/flutter/lib/src/material/popup_menu.dart @@ -384,6 +384,7 @@ class _PopupMenuRoute extends PopupRoute { Animation createAnimation() { return new CurvedAnimation( parent: super.createAnimation(), + curve: Curves.linear, reverseCurve: new Interval(0.0, _kMenuCloseIntervalEnd) ); } diff --git a/packages/flutter/lib/src/material/toggleable.dart b/packages/flutter/lib/src/material/toggleable.dart index af18628342..e4dc2b2ed9 100644 --- a/packages/flutter/lib/src/material/toggleable.dart +++ b/packages/flutter/lib/src/material/toggleable.dart @@ -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);