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
85d42fb3
Unverified
Commit
85d42fb3
authored
Mar 15, 2018
by
xster
Committed by
GitHub
Mar 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap route transitions above the transition as well to prevent repaints (#15534)
parent
2609876c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
routes.dart
packages/flutter/lib/src/widgets/routes.dart
+17
-13
No files found.
packages/flutter/lib/src/widgets/routes.dart
View file @
85d42fb3
...
...
@@ -466,19 +466,23 @@ class _ModalScopeState extends State<_ModalScope> {
offstage:
widget
.
route
.
offstage
,
child:
new
IgnorePointer
(
ignoring:
widget
.
route
.
animation
?.
status
==
AnimationStatus
.
reverse
,
child:
widget
.
route
.
buildTransitions
(
context
,
widget
.
route
.
animation
,
widget
.
route
.
secondaryAnimation
,
new
RepaintBoundary
(
child:
new
PageStorage
(
key:
widget
.
route
.
_subtreeKey
,
bucket:
widget
.
route
.
_storageBucket
,
child:
new
_ModalScopeStatus
(
route:
widget
.
route
,
isCurrent:
widget
.
route
.
isCurrent
,
canPop:
widget
.
route
.
canPop
,
child:
widget
.
page
,
// Keep the transition between repaint boundaries so we don't trigger
// deep repaints of the render tree above or below the transition.
child:
new
RepaintBoundary
(
child:
widget
.
route
.
buildTransitions
(
context
,
widget
.
route
.
animation
,
widget
.
route
.
secondaryAnimation
,
new
RepaintBoundary
(
child:
new
PageStorage
(
key:
widget
.
route
.
_subtreeKey
,
bucket:
widget
.
route
.
_storageBucket
,
child:
new
_ModalScopeStatus
(
route:
widget
.
route
,
isCurrent:
widget
.
route
.
isCurrent
,
canPop:
widget
.
route
.
canPop
,
child:
widget
.
page
,
),
),
),
),
...
...
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