Skip to content

Improve error messages from slivers. #9971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2017
Merged

Improve error messages from slivers. #9971

merged 1 commit into from
May 11, 2017

Conversation

Hixie
Copy link
Contributor

@Hixie Hixie commented May 10, 2017

Also, fix some logic in SliverPadding.

final double paintExtent = math.min(
beforePaddingPaintExtent + math.max(childLayoutGeometry.paintExtent, childLayoutGeometry.layoutExtent + afterPaddingPaintExtent),
constraints.remainingPaintExtent,
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this part of the change testable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previously, the layoutExtent would occasionally (due to floating point math) end up slightly bigger than the paintExtent. That prevents that from happening. I don't know how to actually cause it to happen. It was intermittently happening on that flickering dropdown test you saw me look at.

I'm happy to add a test if you have any ideas for how to actually reproduce the problem reliably.

@abarth
Copy link
Contributor

abarth commented May 10, 2017

LGTM w/ test if the padding change is observable.

@Hixie
Copy link
Contributor Author

Hixie commented May 11, 2017

Fixes #8378

Also, fix some logic in SliverPadding.
@Hixie
Copy link
Contributor Author

Hixie commented May 11, 2017

landing on red because redness was a transient error on the windows bot

@Hixie Hixie merged commit e5e5f61 into flutter:master May 11, 2017
@Hixie Hixie deleted the flicker branch May 11, 2017 00:34
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 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.

3 participants