Skip to content

Conversation

liyuqian
Copy link
Contributor

This is a reland of #55977. On top of that, we fixed the Overflow issue to make it non-breaking.

Description

We add clipBehavior to

  1. Flex
  2. FittedBox
  3. UnconstrainedBox
  4. Wrap
  5. Stack
  6. EditableText
  7. ListWheelScrollView
  8. SingleChildScrollView
  9. NestedScrollView
  10. ShrinkWrappingViewport

Eventually, the first 4 of them will be default to Clip.none while the remaining 6 of them are default to Clip.hardEdge.

In the current PR, all of them are still default to Clip.hardEdge to not break some Google usages. Once we've updated the code inside Google, we'll update the clipBehavior.

Related Issues

This is a continuation of #18057, and this fixes #21830

Tests

Unit tests added to each modified widget and render object.

Breaking Change

@fluttergithubbot fluttergithubbot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. c: contributor-productivity Team-specific productivity, code health, technical debt. labels Jun 12, 2020
@liyuqian liyuqian requested a review from goderbauer June 12, 2020 20:38
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

@liyuqian
Copy link
Contributor Author

Non-breaking properties tested on cl/316808440

@liyuqian liyuqian merged commit 42e02d6 into flutter:master Jun 17, 2020
zljj0818 pushed a commit to zljj0818/flutter that referenced this pull request Jun 22, 2020
…r#55977" (flutter#59364)

* Revert "Revert "Add clipBehavior to widgets with clipRect (flutter#55977)" (flutter#58344)"

This reverts commit 1d395c5.

* Add missed Overflow
liyuqian added a commit to liyuqian/flutter that referenced this pull request Aug 12, 2020
These widgets are missing from
flutter#59364

With this change, developers can use clipBehavior for
flutter#59424
liyuqian added a commit that referenced this pull request Aug 13, 2020
These widgets are missing from
#59364

With this change, developers can use clipBehavior for
#59424
mingwandroid pushed a commit to mingwandroid/flutter that referenced this pull request Sep 6, 2020
…r#55977" (flutter#59364)

* Revert "Revert "Add clipBehavior to widgets with clipRect (flutter#55977)" (flutter#58344)"

This reverts commit 1d395c5.

* Add missed Overflow
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
liyuqian added a commit to liyuqian/flutter that referenced this pull request Sep 10, 2020
liyuqian added a commit that referenced this pull request Sep 15, 2020
This follows #59364 and cl/319911104

FittedBox is still default to hardEdge clip as new FittedBox is added to Google very quickly. Let's first roll other part of changes into Google first.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clipBehavior is not sent to pushClipRect/ClipRectLayer in some places

4 participants