-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Make sure that a Dialog doesn't crash in 0x0 environment #174023
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
Conversation
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.
Code Review
This pull request introduces a regression test to prevent a crash when a Dialog is rendered in a zero-sized environment. The added test case is clear and covers the intended scenario. I've suggested an improvement to make the test more robust by adding an assertion, in line with the repository's testing guidelines. Note that the fix for the underlying crash is not included in this pull request; I assume it is handled separately.
dkwingsmt
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
victorsanni
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, but following up from the discussion here, I'm not sure how to proceed, wdyt @LongCatIsLooong ?
LongCatIsLooong
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.
Could you apply the same change you did for #173928 (adding a Center between MaterialApp and SizedBox.shrink) here too?
f971746 to
3066296
Compare
LongCatIsLooong
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. Thanks for updating the PR!
) This is my attempt to handle flutter#6537 for the Dialog UI control. Co-authored-by: Tong Mu <[email protected]>
) This is my attempt to handle flutter#6537 for the Dialog UI control. Co-authored-by: Tong Mu <[email protected]>
) This is my attempt to handle flutter#6537 for the Dialog UI control. Co-authored-by: Tong Mu <[email protected]>
) This is my attempt to handle flutter#6537 for the Dialog UI control. Co-authored-by: Tong Mu <[email protected]>
This is my attempt to handle #6537 for the Dialog UI control.