-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Make sure that a CupertinoActivityIndicator doesn't crash in 0x0 envi… #178565
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
Make sure that a CupertinoActivityIndicator doesn't crash in 0x0 envi… #178565
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 adds a regression test for an issue where CupertinoActivityIndicator crashes when rendered in a zero-sized environment. The test is well-written and accurately reproduces the scenario described in issue #6537 by using a SizedBox.shrink().
While the test is a valuable addition for preventing future regressions, the pull request seems to be missing the corresponding fix in the CupertinoActivityIndicator widget. Without the fix, this test is expected to fail. Please include the necessary code changes to resolve the crash, so the test can pass and the issue can be closed.
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.
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/178565, because - The status or check suite Mac customer_testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
499927b to
8b4ed17
Compare
flutter/flutter@7b98d50...022b155 2025-11-27 goderbauer@google.com Make tree green again by fixing lints (flutter/flutter#179186) 2025-11-26 okorohelijah@google.com Add shared Darwin implementation for plugins (flutter/flutter#176495) 2025-11-26 77888283+shivanuj13@users.noreply.github.com Fixed changing supportedLocales fails to update the locale (flutter/flutter#178526) 2025-11-26 bkonyi@google.com [ Tool ] Remove --no-sandbox when launching web apps on Chrome device (flutter/flutter#178670) 2025-11-26 simon@journeyapps.com Build hooks: Don't require toolchain for unit tests (flutter/flutter#178954) 2025-11-26 116356835+AbdeMohlbi@users.noreply.github.com Fix a small typo in `HandlerCompat.java` docs (flutter/flutter#178595) 2025-11-26 engine-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from nzuAxCJGeJbkZCTkr... to _e9MNK4nfBOrERVP_... (flutter/flutter#179130) 2025-11-26 ahmedsameha1@gmail.com Make sure that a CupertinoActivityIndicator doesn't crash in 0x0 envi… (flutter/flutter#178565) 2025-11-26 dacoharkes@google.com [native assets] Bump minimum iOS version from 12 to 13 (flutter/flutter#179079) 2025-11-26 30870216+gaaclarke@users.noreply.github.com Documents and fixes behavior when clipping background filter fragment shader (flutter/flutter#178940) 2025-11-26 116356835+AbdeMohlbi@users.noreply.github.com Replace the hardcoded link with an actual link tag in `PlatformChannel.java` docs (flutter/flutter#178588) 2025-11-26 engine-flutter-autoroll@skia.org Roll Packages from cc3dca6 to 5d8d954 (5 revisions) (flutter/flutter#179140) 2025-11-26 15619084+vashworth@users.noreply.github.com Add more templates that the UIScene migrator can match against (flutter/flutter#179044) 2025-11-26 116356835+AbdeMohlbi@users.noreply.github.com Remove deprecated activeColor in `dynamic_content_color.0.dart` example (flutter/flutter#178961) 2025-11-26 116356835+AbdeMohlbi@users.noreply.github.com Remove deprecated `activeColor` in `decorated_sliver.1.dart` example (flutter/flutter#178959) 2025-11-26 116356835+AbdeMohlbi@users.noreply.github.com Small refactor in `PlayStoreDeferredComponentManager.java` (flutter/flutter#178586) 2025-11-26 engine-flutter-autoroll@skia.org Roll Dart SDK from 9e605f706cdf to 1d8dc04bd1d7 (4 revisions) (flutter/flutter#179080) 2025-11-26 mr-peipei@web.de Fix error when generating pt_BR localizations (flutter/flutter#175832) 2025-11-26 engine-flutter-autoroll@skia.org Roll Fuchsia Test Scripts from JUeFbA8y0E-_pj-bg... to MHF-UAfO6sVKqSEYk... (flutter/flutter#179151) 2025-11-26 737941+loic-sharma@users.noreply.github.com Add flutter_lints to samples (flutter/flutter#179091) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC bmparr@google.com,stuartmorgan@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter#178565) This is my attempt to handle flutter#6537 for the CupertinoActivityIndicator widget.
flutter#178565) This is my attempt to handle flutter#6537 for the CupertinoActivityIndicator widget.
This is my attempt to handle #6537 for the CupertinoActivityIndicator widget.