Changed Material ease animations to fastOutSlowIn. (#5643)

Fixes #5393.
This commit is contained in:
Dragoș Tiselice
2016-09-02 09:03:51 -07:00
committed by GitHub
parent c57635f1a8
commit 8a20b261d0
13 changed files with 21 additions and 22 deletions

View File

@@ -122,7 +122,7 @@ class _PointDemoState extends State<_PointDemo> {
@override
void initState() {
super.initState();
_animation = new CurvedAnimation(parent: config.controller, curve: Curves.ease);
_animation = new CurvedAnimation(parent: config.controller, curve: Curves.fastOutSlowIn);
}
@override
@@ -287,7 +287,7 @@ class _RectangleDemoState extends State<_RectangleDemo> {
@override
void initState() {
super.initState();
_animation = new CurvedAnimation(parent: config.controller, curve: Curves.ease);
_animation = new CurvedAnimation(parent: config.controller, curve: Curves.fastOutSlowIn);
}
@override

View File

@@ -24,8 +24,8 @@ class _ProgressIndicatorDemoState extends State<ProgressIndicatorDemo> {
_animation = new CurvedAnimation(
parent: _controller,
curve: new Interval(0.0, 0.9, curve: Curves.ease),
reverseCurve: Curves.ease
curve: new Interval(0.0, 0.9, curve: Curves.fastOutSlowIn),
reverseCurve: Curves.fastOutSlowIn
)..addStatusListener((AnimationStatus status) {
if (status == AnimationStatus.dismissed)
_controller.forward();