Skip to content

Add clipBehavior to ListView, GridView, PageView - #63147

Merged
liyuqian merged 3 commits into
flutter:masterfrom
liyuqian:more_clip_viewport
Aug 13, 2020
Merged

liyuqian merged 3 commits into
flutter:masterfrom
liyuqian:more_clip_viewport

Conversation

@liyuqian

@liyuqian liyuqian commented Aug 7, 2020

Copy link
Copy Markdown
Contributor

These widgets are missing from
#59364

With this change, developers can use clipBehavior for
#59424

@liyuqian
liyuqian requested a review from goderbauer August 7, 2020 00:03
@flutter-dashboard flutter-dashboard Bot added the framework flutter/packages/flutter repository. See also f: labels. label Aug 7, 2020

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is ShrinkWrappingViewport need clipBehavior?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ShrinkWrappingViewport seems to already have clipBehavior:

@xu-baolin xu-baolin Aug 8, 2020 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I mean line 314. This function has two return branches, :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah yes, nice catch! Fixed now.

@xu-baolin

Copy link
Copy Markdown
Member

I searched for the usage of pushClipRect globally, I am not sure are those widgets OverLay AnimatedSize AndroidView need too.

@goderbauer

Copy link
Copy Markdown
Member

Looks like the analyzer is not happy about this.

@liyuqian

liyuqian commented Aug 7, 2020

Copy link
Copy Markdown
Contributor Author

I searched for the usage of pushClipRect globally, I am not sure are those widgets OverLay AnimatedSize AndroidView need too.

Yes, I should add it to them. Created #63246 to track the progress. I'll do it in another PR.

@Piinks Piinks added the f: scrolling Viewports, list views, slivers, etc. label Aug 10, 2020
@liyuqian liyuqian mentioned this pull request Aug 11, 2020
4 tasks done

@goderbauer goderbauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

These widgets are missing from
flutter#59364

With this change, developers can use clipBehavior for
flutter#59424
@fluttergithubbot

Copy link
Copy Markdown
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Linux hostonly_devicelab_tests has failed. Please fix the issues identified (or deflake) before re-applying this label.
  • The status or check suite Linux tool_tests has failed. Please fix the issues identified (or deflake) before re-applying this label.
  • The status or check suite Linux web_tests has failed. Please fix the issues identified (or deflake) before re-applying this label.

@liyuqian
liyuqian merged commit 3ff76f4 into flutter:master Aug 13, 2020
@liyuqian
liyuqian deleted the more_clip_viewport branch August 14, 2020 22:18
mingwandroid pushed a commit to mingwandroid/flutter that referenced this pull request Sep 6, 2020
These widgets are missing from
flutter#59364

With this change, developers can use clipBehavior for
flutter#59424
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants