-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add barrierDismissable argument to showDialog #8397
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.
What about just defaulting to false?
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.
Good idea.
In some situations, dialogs don't want the barrier to be dismissable. Fixes flutter#8354
| this.theme, | ||
| }); | ||
| @required this.theme, | ||
| bool barrierDismissable: true, |
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.
doesn't matter what the default is, this is only called from one place and that place lists the argument.
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.
That's true, but we might as well have ergonomic private APIs.
flutter/engine@6675f71...f7b4903 git log 6675f71..f7b4903 --no-merges --oneline f7b4903 Revert "Separate the data required to bootstrap the VM into its own class. (#8397)" (flutter/engine#8406) f835789 Roll src/third_party/skia d962070feb84..70d8f4f3acbb (1 commits) (flutter/engine#8405) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md If the roll is causing failures, please contact the current sheriff ([email protected]), and stop the roller if necessary.
…M into its own class. (flutter#8397)" (flutter#8406)" (flutter/engine#8414)
…M into its own class. (flutter#8397)" (flutter#8406)" (flutter/engine#8414)
…M into its own class. (flutter#8397)" (flutter#8406)" (flutter/engine#8414)
flutter/engine@309d078...ad9d241 git log 309d078..ad9d241 --no-merges --oneline ad9d241 Roll src/third_party/skia dde12a25bb5e..f346df396a23 (1 commits) (flutter/engine#8438) 0ed237c Roll src/third_party/skia b6d04556c34d..dde12a25bb5e (4 commits) (flutter/engine#8437) 445ab42 Roll src/third_party/dart 11a3dd7332..600b2831ef (9 commits) 49d0dc6 Roll src/third_party/skia 5c5de2146309..b6d04556c34d (1 commits) (flutter/engine#8434) 4ff18fb Roll src/third_party/dart f6768b6fb3..11a3dd7332 (56 commits) 7b83198 Roll src/third_party/skia 2273c900ea28..5c5de2146309 (5 commits) (flutter/engine#8432) 800ea0a Revert "Enable shutting down all root isolates in a VM. (#8402)" (flutter/engine#8431) b59c443 Enable shutting down all root isolates in a VM. (flutter/engine#8402) 9acdf18 Make AccessibilityViewEmbedder final (flutter/engine#8429) 804d54d Eliminate unused displayBounds parameter (flutter/engine#8427) d4c815f Roll buildroot (flutter/engine#8425) 20190d7 Roll src/third_party/skia fbe240669394..2273c900ea28 (13 commits) (flutter/engine#8428) 7e38b0a Revert "Revert "Separate the data required to bootstrap the VM into its own class. (#8397)" (#8406)" (flutter/engine#8414) d8bb9d7 Roll src/third_party/skia 176da0bb8a10..fbe240669394 (9 commits) (flutter/engine#8424) 64fc583 Remove use of DART_CHECK_VALID. (flutter/engine#8417) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md If the roll is causing failures, please contact the current sheriff ([email protected]), and stop the roller if necessary.
In some situations, dialogs don't want the barrier to be dismissable.
Fixes #8354