Changed Material ease animations to fastOutSlowIn. (#5643)
Fixes #5393.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user