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
e78cbe5d
Unverified
Commit
e78cbe5d
authored
Jul 14, 2020
by
chunhtai
Committed by
GitHub
Jul 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix code comments in the route route didadd method (#61400)
parent
dcb3e77a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
navigator.dart
packages/flutter/lib/src/widgets/navigator.dart
+10
-3
No files found.
packages/flutter/lib/src/widgets/navigator.dart
View file @
e78cbe5d
...
...
@@ -214,9 +214,16 @@ abstract class Route<T> {
// will be guarded by the asynchronous gap.
TickerFuture
.
complete
().
then
<
void
>((
void
_
)
{
// The route can be disposed before the ticker future completes. This can
// happen when the navigator is under a TabView that does a warping. The
// navigator will be null in this case, and we have to do a null-safe
// operation.
// happen when the navigator is under a TabView that warps from one tab to
// another, non-adjacent tab, with an animation. The TabView reorders its
// children before and after the warping completes, and that causes its
// children to be built and disposed within the same frame. If one of its
// children contains a navigator, the routes in that navigator are also
// added and disposed within that frame.
//
// Since the reference to the navigator will be set to null after it is
// disposed, we have to do a null-safe operation in case that happens
// within the same frame when it is added.
navigator
?.
focusScopeNode
?.
requestFocus
();
});
}
...
...
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