-
Notifications
You must be signed in to change notification settings - Fork 29.7k
CupertinoAlertDialog dark mode & CupertinoActionSheet fidelity #40007
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
| context: context, | ||
| barrierDismissible: false, | ||
| barrierColor: _kModalBarrierColor, | ||
| barrierColor: CupertinoDynamicColor.resolve(_kModalBarrierColor, context), |
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.
The caveat of doing this is, the color won't change unless the dialog is dismissed then shown again.
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.
Seems OK. Even if we recreated showGeneralDialog's _DialogRoute, it still wouldn't be easy to get the scrim to redraw when the platform's brightness changed.
HansMuller
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.
LGTM
| context: context, | ||
| barrierDismissible: false, | ||
| barrierColor: _kModalBarrierColor, | ||
| barrierColor: CupertinoDynamicColor.resolve(_kModalBarrierColor, context), |
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.
Seems OK. Even if we recreated showGeneralDialog's _DialogRoute, it still wouldn't be easy to get the scrim to redraw when the platform's brightness changed.
|
This PR caused a regression as discussed in #50183 |
Description
CupertinoAlertDialogandCupertinoActionSheetModalBarriercolor that used for cupertino popup routesCupertinoAlertDialogdark mode.Related Issues
Part of #35541
Fixes #39941
Fixes #20469
Screenshots (iPhone XR device, iOS 13.1 17A5831c)
The native alert view has some additional visual effects that we have yet to add to
CupertinoAlertDialog, so it looks more opaque thanCupertinoAlertDialogin the screenshots below.Tests
I added the following tests:
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?