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
c40f4cfe
Commit
c40f4cfe
authored
Apr 14, 2016
by
Alhaad Gokhale
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3329 from alhaad/repaint_childview
Repaint child view on attach / detach.
parents
b172dd5a
6f9acb84
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 @
c40f4cfe
...
...
@@ -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