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
6f9acb84
Commit
6f9acb84
authored
Apr 14, 2016
by
Alhaad Gokhale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repaint child view on attach / detach.
parent
ec85af59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
child_view.dart
packages/flutter/lib/src/rendering/child_view.dart
+11
-3
No files found.
packages/flutter/lib/src/rendering/child_view.dart
View file @
6f9acb84
...
...
@@ -124,8 +124,8 @@ class ChildViewConnection {
assert
(
_attached
);
assert
(
_viewOwner
!=
null
);
assert
(
_viewKey
==
null
);
assert
(
_viewInfo
==
null
);
_viewKey
=
_nextViewKey
++;
_viewInfo
=
null
;
_viewContainer
?.
addChild
(
_viewKey
,
_viewOwner
.
impl
);
_viewOwner
=
null
;
assert
(!
_ViewContainerListenerImpl
.
instance
.
_connections
.
containsKey
(
_viewKey
));
...
...
@@ -253,12 +253,20 @@ class RenderChildView extends RenderBox {
@override
void
attach
(
PipelineOwner
owner
)
{
super
.
attach
(
owner
);
_child
?.
_attach
();
if
(
_child
!=
null
)
{
_child
.
_attach
();
assert
(
_child
.
_onViewInfoAvailable
==
null
);
_child
.
_onViewInfoAvailable
=
markNeedsPaint
;
}
}
@override
void
detach
()
{
_child
?.
_detach
();
if
(
_child
!=
null
)
{
_child
.
_detach
();
assert
(
_child
.
_onViewInfoAvailable
!=
null
);
_child
.
_onViewInfoAvailable
=
null
;
}
super
.
detach
();
}
...
...
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