Make sure that a DefaultTabController doesn't crash in 0x0 environment#178117
Conversation
There was a problem hiding this comment.
Code Review
The pull request introduces a new test case to address a potential crash in DefaultTabController when rendered in a zero-area environment. The added testWidgets block effectively simulates this scenario by wrapping the DefaultTabController within a SizedBox.shrink and asserts that it does not crash and correctly reports a zero size. This is a valuable regression test that directly addresses the linked GitHub issue, enhancing the robustness of the widget.
dkwingsmt
left a comment
There was a problem hiding this comment.
Checklist:
- The test is in the correct file
- The test name goes “does not crash at zero area”
- The target widget is wrapped by
Center(or is fullscreen) - The target widget does not have an overlay, or the overlay is tested
- The target widget is expected to have a size of exactly
Size.zero
dkwingsmt
left a comment
There was a problem hiding this comment.
Checklist:
- The test is in the correct file
- The test name goes “does not crash at zero area”
- The target widget is wrapped by
Center(or is fullscreen) - The target widget does not have an overlay, or the overlay is tested
- The target widget is expected to have a size of exactly
Size.zero
|
autosubmit label was removed for flutter/flutter/178117, because Pull request flutter/flutter/178117 is not in a mergeable state. |
|
hi @ahmedsameha1 , can you resolve the merge conflicts so this PR can be landed? Thanks! |
ec75f38 to
4937133
Compare
flutter#178117) This is my attempt to handle flutter#6537 for the DefaultTabController widget.
flutter#178117) This is my attempt to handle flutter#6537 for the DefaultTabController widget.
flutter#178117) This is my attempt to handle flutter#6537 for the DefaultTabController widget.
This is my attempt to handle #6537 for the DefaultTabController widget.