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
4e513822
Commit
4e513822
authored
Nov 26, 2015
by
Hixie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn the LocalHistoryRoute into a mixin.
parent
1e8fa404
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
routes.dart
packages/flutter/lib/src/widgets/routes.dart
+8
-11
No files found.
packages/flutter/lib/src/widgets/routes.dart
View file @
4e513822
...
@@ -61,6 +61,11 @@ abstract class TransitionRoute<T> extends OverlayRoute<T> {
...
@@ -61,6 +61,11 @@ abstract class TransitionRoute<T> extends OverlayRoute<T> {
})
:
_popCompleter
=
popCompleter
,
})
:
_popCompleter
=
popCompleter
,
_transitionCompleter
=
transitionCompleter
;
_transitionCompleter
=
transitionCompleter
;
TransitionRoute
.
explicit
(
Completer
<
T
>
popCompleter
,
Completer
<
T
>
transitionCompleter
)
:
this
(
popCompleter:
popCompleter
,
transitionCompleter:
transitionCompleter
);
/// This future completes once the animation has been dismissed. For
/// This future completes once the animation has been dismissed. For
/// ModalRoutes, this will be after the completer that's passed in, since that
/// ModalRoutes, this will be after the completer that's passed in, since that
/// one completes before the animation even starts, as soon as the route is
/// one completes before the animation even starts, as soon as the route is
...
@@ -148,15 +153,7 @@ class LocalHistoryEntry {
...
@@ -148,15 +153,7 @@ class LocalHistoryEntry {
}
}
}
}
abstract
class
LocalHistoryRoute
<
T
>
extends
TransitionRoute
<
T
>
{
abstract
class
LocalHistoryRoute
<
T
>
extends
Route
<
T
>
{
LocalHistoryRoute
({
Completer
<
T
>
popCompleter
,
Completer
<
T
>
transitionCompleter
})
:
super
(
popCompleter:
popCompleter
,
transitionCompleter:
transitionCompleter
);
List
<
LocalHistoryEntry
>
_localHistory
;
List
<
LocalHistoryEntry
>
_localHistory
;
void
addLocalHistoryEntry
(
LocalHistoryEntry
entry
)
{
void
addLocalHistoryEntry
(
LocalHistoryEntry
entry
)
{
assert
(
entry
.
_owner
==
null
);
assert
(
entry
.
_owner
==
null
);
...
@@ -268,11 +265,11 @@ class ModalPosition {
...
@@ -268,11 +265,11 @@ class ModalPosition {
final
double
left
;
final
double
left
;
}
}
abstract
class
ModalRoute
<
T
>
extends
LocalHistoryRoute
<
T
>
{
abstract
class
ModalRoute
<
T
>
extends
TransitionRoute
<
T
>
with
LocalHistoryRoute
<
T
>
{
ModalRoute
({
ModalRoute
({
Completer
<
T
>
completer
,
Completer
<
T
>
completer
,
this
.
settings
:
const
NamedRouteSettings
()
this
.
settings
:
const
NamedRouteSettings
()
})
:
super
(
popCompleter:
completer
);
})
:
super
.
explicit
(
completer
,
null
);
// The API for general users of this class
// The API for general users of this class
...
...
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