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
99346d00
Commit
99346d00
authored
Jul 17, 2015
by
Collin Jackson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abarth feedback
parent
a54f7cf2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
navigator.dart
packages/flutter/lib/widgets/navigator.dart
+17
-11
No files found.
packages/flutter/lib/widgets/navigator.dart
View file @
99346d00
...
...
@@ -63,9 +63,11 @@ class Transition extends AnimatedComponent {
AnimationPerformance
_performance
;
void
initState
()
{
_position
=
new
AnimatedType
<
Point
>(
_kTransitionStartPoint
)
..
end
=
Point
.
origin
..
curve
=
easeOut
;
_position
=
new
AnimatedType
<
Point
>(
_kTransitionStartPoint
,
end:
Point
.
origin
,
curve:
easeOut
);
_opacity
=
new
AnimatedType
<
double
>(
0.0
,
end:
1.0
)
..
curve
=
easeOut
;
_performance
=
new
AnimationPerformance
()
...
...
@@ -96,6 +98,7 @@ class Transition extends AnimatedComponent {
direction
=
source
.
direction
;
_start
();
}
interactive
=
source
.
interactive
;
onDismissed
=
source
.
onDismissed
;
super
.
syncFields
(
source
);
}
...
...
@@ -222,14 +225,17 @@ class Navigator extends StatefulComponent {
if
(
content
==
null
)
continue
;
String
key
=
historyEntry
.
route
.
key
;
Transition
transition
=
new
Transition
(
content:
content
,
key:
key
)
..
direction
=
(
i
<=
state
.
historyIndex
)
?
TransitionDirection
.
forward
:
TransitionDirection
.
reverse
..
interactive
=
(
i
==
state
.
historyIndex
)
..
onDismissed
=
()
{
Transition
transition
=
new
Transition
(
key:
key
,
content:
content
,
direction:
(
i
<=
state
.
historyIndex
)
?
TransitionDirection
.
forward
:
TransitionDirection
.
reverse
,
interactive:
(
i
==
state
.
historyIndex
),
onDismissed:
()
{
setState
(()
{
state
.
history
.
remove
(
historyEntry
);
});
};
}
);
visibleRoutes
.
add
(
transition
);
}
return
new
Stack
(
visibleRoutes
);
...
...
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