Repository navigation
Use ServicesBinding.instance.exitApplication instead of exit(0) in multiple_windows example - #189364
Conversation
…ltiple_windows example
|
It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group. |
There was a problem hiding this comment.
Code Review
This pull request modifies examples/multiple_windows/lib/main.dart by replacing the dart:io import with dart:ui and package:flutter/services.dart. It updates the onWindowDestroyed method to use ServicesBinding.instance.exitApplication(AppExitType.required) instead of calling exit(0). There are no review comments, and I have no feedback to provide.
robert-ancell
left a comment
There was a problem hiding this comment.
That looks more correct.
flutter/flutter@846664b...fc1ad95 2026-07-15 chris@bracken.jp [iOS] Migrate FlutterKeyboardInsetManager to Swift (flutter/flutter#189425) 2026-07-15 engine-flutter-autoroll@skia.org Roll Dart SDK from 05bf153370c4 to 0c408ff6dce9 (4 revisions) (flutter/flutter#189487) 2026-07-15 97480502+b-luk@users.noreply.github.com Implement UberSDF lines to replace LineContents-based AA lines (flutter/flutter#188514) 2026-07-15 66727653+ishaq2321@users.noreply.github.com Fix stale eagerWinner reference in GestureArenaManager when rejected before arena close (flutter/flutter#187008) 2026-07-15 jason-simmons@users.noreply.github.com Disable some Windows tests that are flaking on CI (flutter/flutter#189477) 2026-07-15 dmgr Added unified check-run user manual (flutter/flutter#189453) 2026-07-15 engine-flutter-autoroll@skia.org Roll Skia from 88954ef8f36d to ab2410bc857c (9 revisions) (flutter/flutter#189474) 2026-07-14 1961493+harryterkelsen@users.noreply.github.com [agents] Refactor shepherd-prs skill into a pure Markdown runbook using native gh CLI (flutter/flutter#189095) 2026-07-14 6655696+guidezpl@users.noreply.github.com Add missing name to mirroring workflow (flutter/flutter#189439) 2026-07-14 biggs0125@gmail.com Add support for WASM deferred loading. (flutter/flutter#189308) 2026-07-14 116356835+AbdeMohlbi@users.noreply.github.com fix `templateDefaultGradleVersion` todo (flutter/flutter#189466) 2026-07-14 engine-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from oOETA0ISPouDt2xBo... to lLFbh5kFWbUGgC9Ek... (flutter/flutter#189469) 2026-07-14 matt.kosarek@canonical.com Use ServicesBinding.instance.exitApplication instead of exit(0) in multiple_windows example (flutter/flutter#189364) 2026-07-14 chingjun@google.com Add CpuArch to the Device class (flutter/flutter#189207) 2026-07-14 bkonyi@google.com Fix space formatting in cherry-pick label for flutter_cp.dart (flutter/flutter#189463) 2026-07-14 137456488+flutter-pub-roller-bot@users.noreply.github.com Roll pub packages (flutter/flutter#189454) 2026-07-14 44747303+theprantadutta@users.noreply.github.com [flutter_tools] Format plugin example template to match dart format (flutter/flutter#188382) 2026-07-14 magder@google.com Move renamed x64->ARM benchmarks out of bringup (flutter/flutter#189400) 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 louisehsu@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
What's new?
Pre-launch Checklist
///).