Clean up Tween and friends. (#9858)
This commit is contained in:
@@ -47,7 +47,7 @@ class NavigationIconView {
|
||||
return new FadeTransition(
|
||||
opacity: _animation,
|
||||
child: new SlideTransition(
|
||||
position: new Tween<FractionalOffset>(
|
||||
position: new FractionalOffsetTween(
|
||||
begin: const FractionalOffset(0.0, 0.02), // Small offset from the top.
|
||||
end: FractionalOffset.topLeft,
|
||||
).animate(_animation),
|
||||
|
||||
@@ -38,7 +38,7 @@ class _DrawerDemoState extends State<DrawerDemo> with TickerProviderStateMixin {
|
||||
parent: new ReverseAnimation(_controller),
|
||||
curve: Curves.fastOutSlowIn,
|
||||
);
|
||||
_drawerDetailsPosition = new Tween<FractionalOffset>(
|
||||
_drawerDetailsPosition = new FractionalOffsetTween(
|
||||
begin: const FractionalOffset(0.0, -1.0),
|
||||
end: const FractionalOffset(0.0, 0.0),
|
||||
).animate(new CurvedAnimation(
|
||||
|
||||
Reference in New Issue
Block a user