Make sure that a Dialog doesn't crash in 0x0 environment#174023
Make sure that a Dialog doesn't crash in 0x0 environment#174023auto-submit[bot] merged 3 commits intoflutter:masterfrom
Conversation
There was a problem hiding this comment.
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.
victorsanni
left a comment
There was a problem hiding this comment.
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.
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.
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.