-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Reland #63639 #64615
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
Reland #63639 #64615
Conversation
This reverts commit 6536f65.
|
This pull request is not suitable for automatic merging in its current state.
|
|
(PR triage): What's the status of this PR? Is it waiting for #48679 to be fixed? |
|
@goderbauer yes. Breaks internal tests otherwise. |
|
This pull request is not suitable for automatic merging in its current state.
|
|
#48679 has been fixed. |
|
@LongCatIsLooong Any updates on this PR? |
|
nvm it's super straightforward. I might have had the wrong method in mind. |
|
Gold has detected about 1 untriaged digest(s) on patchset 2. |
|
Gold has detected about 1 untriaged digest(s) on patchset 3. |
1f70e16 to
f28a6ae
Compare
|
Gold has detected about 1 untriaged digest(s) on patchset 4. |
f28a6ae to
dbb41a4
Compare
|
Gold has detected about 1 untriaged digest(s) on patchset 5. |
c59b1e3 to
cd171cb
Compare
|
Ran TGP and there're 31 test failures. I'll split the PR into 2 parts and try to merge the safe part first. |
justinmc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
I left some comments that didn't end up as part of this review for some reason:
#77994 (comment)
#77994 (comment)
Just some stuff to think about. It definitely took me awhile to understand exactly how this widget will behave in comparison to other widgets like ConstrainedBox. It seems like that's due to the complexity of those widgets, not with this new one, though.
| /// * [RenderSizedOverflowBox], a render object that is a specific size but | ||
| /// passes its original constraints through to its child, which it allows to | ||
| /// overflow. | ||
| class RenderUnconstrainedBox extends RenderConstraintsTransformBox { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted something like this when I was working on InteractiveViewer, and this is how I did it:
flutter/packages/flutter/lib/src/widgets/interactive_viewer.dart
Lines 1073 to 1082 in c30fdfb
| if (!widget.constrained) { | |
| child = OverflowBox( | |
| alignment: Alignment.topLeft, | |
| minWidth: 0.0, | |
| minHeight: 0.0, | |
| maxWidth: double.infinity, | |
| maxHeight: double.infinity, | |
| child: child, | |
| ); | |
| } |
If I remember correctly it was actually really hard to do for sizes bigger than the screen. Using a ConstrainedBox with infinite constraints didn't work, strangely.
This reverts commit 6536f65.
Prerequisite: #48679
Tests
I added the following tests:
Replace this with a list of the tests that you added as part of this PR. A change in behavior with no test covering it
will likely get reverted accidentally sooner or later. PRs must include tests for all changed/updated/fixed behaviors. See Test Coverage.
Checklist
Before you create this PR, confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.