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
c423f734
Commit
c423f734
authored
Nov 20, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #514 from abarth/list_repaint
Make stocks list scrolling 2x faster on the main thread
parents
49fb4923
efbea05e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
block.dart
packages/flutter/lib/src/rendering/block.dart
+1
-0
homogeneous_viewport.dart
packages/flutter/lib/src/widgets/homogeneous_viewport.dart
+3
-1
No files found.
packages/flutter/lib/src/rendering/block.dart
View file @
c423f734
...
...
@@ -255,6 +255,7 @@ class RenderBlockViewport extends RenderBlockBase {
super
(
children:
children
,
direction:
direction
,
itemExtent:
itemExtent
,
minExtent:
minExtent
);
bool
_inCallback
=
false
;
bool
get
hasLayer
=>
true
;
/// Called during [layout] to determine the blocks children
///
...
...
packages/flutter/lib/src/widgets/homogeneous_viewport.dart
View file @
c423f734
...
...
@@ -148,7 +148,9 @@ class _HomogeneousViewportElement extends RenderObjectElement<HomogeneousViewpor
assert
(
_layoutItemCount
!=
null
);
List
<
Widget
>
newWidgets
;
if
(
_layoutItemCount
>
0
)
newWidgets
=
widget
.
builder
(
this
,
_layoutFirstIndex
,
_layoutItemCount
);
newWidgets
=
widget
.
builder
(
this
,
_layoutFirstIndex
,
_layoutItemCount
).
map
((
Widget
widget
)
{
return
new
RepaintBoundary
(
key:
new
ValueKey
<
Key
>(
widget
.
key
),
child:
widget
);
}).
toList
();
else
newWidgets
=
<
Widget
>[];
_children
=
updateChildren
(
_children
,
newWidgets
);
...
...
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