Skip to content

Conversation

@abarth
Copy link
Contributor

@abarth abarth commented Jan 14, 2016

We were recomputing which widgets to show only when we were on the other side
of the repaint boundaries. That doesn't work well for pageable lists because we
come to rest exactly on a repaint boundary, which means we don't cull the other
page.

After this patch, we recompute the set of widgets using an edge-trigger when we
hit the boundary. That's better than using a level-trigger so that we don't
continuously recompute the set of widget as we sit at the boundary.

We were recomputing which widgets to show only when we were on the other side
of the repaint boundaries. That doesn't work well for pageable lists because we
come to rest exactly on a repaint boundary, which means we don't cull the other
page.

After this patch, we recompute the set of widgets using an edge-trigger when we
hit the boundary. That's better than using a level-trigger so that we don't
continuously recompute the set of widget as we sit at the boundary.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!!! Oh, nevermind. I see now that you are changing this API signature. I thought you had just found places that didn't have the right signature.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I just made this instance of this pattern match the one we use elsewhere.

@Hixie
Copy link
Contributor

Hixie commented Jan 14, 2016

LGTM

abarth added a commit that referenced this pull request Jan 14, 2016
Stocks has both tabs reified in the wiget tree
@abarth abarth merged commit 6d7bf20 into flutter:master Jan 14, 2016
@abarth abarth deleted the edge_trigger branch January 14, 2016 19:24
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants