Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
243b4c06
Commit
243b4c06
authored
8 years ago
by
Hans Muller
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ease Material route animations (#5487)
parent
03b117a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
page.dart
packages/flutter/lib/src/material/page.dart
+5
-2
heroes.dart
packages/flutter/lib/src/widgets/heroes.dart
+2
-2
No files found.
packages/flutter/lib/src/material/page.dart
View file @
243b4c06
...
...
@@ -18,8 +18,11 @@ class _MaterialPageTransition extends AnimatedWidget {
this
.
child
})
:
super
(
key:
key
,
animation:
_kMaterialPageTransitionTween
.
animate
(
new
CurvedAnimation
(
parent:
animation
,
curve:
Curves
.
fastOutSlowIn
))
);
animation:
_kMaterialPageTransitionTween
.
animate
(
new
CurvedAnimation
(
parent:
animation
,
// The route's linear 0.0 - 1.0 animation.
curve:
Curves
.
fastOutSlowIn
)
));
final
Widget
child
;
...
...
This diff is collapsed.
Click to expand it.
packages/flutter/lib/src/widgets/heroes.dart
View file @
243b4c06
...
...
@@ -447,7 +447,7 @@ class HeroController extends NavigatorObserver {
if
(
previousRoute
is
PageRoute
<
dynamic
>)
// could be null
_from
=
previousRoute
;
_to
=
route
;
_animation
=
route
.
animation
;
_animation
=
new
CurvedAnimation
(
parent:
route
.
animation
,
curve:
Curves
.
fastOutSlowIn
)
;
_checkForHeroQuest
();
}
}
...
...
@@ -461,7 +461,7 @@ class HeroController extends NavigatorObserver {
if
(
previousRoute
is
PageRoute
<
dynamic
>)
{
_to
=
previousRoute
;
_from
=
route
;
_animation
=
route
.
animation
;
_animation
=
new
CurvedAnimation
(
parent:
route
.
animation
,
curve:
Curves
.
fastOutSlowIn
)
;
_checkForHeroQuest
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment