-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Deprecated CupertinoDialog in favor of a new widget called CupertinoP… #20649
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
Deprecated CupertinoDialog in favor of a new widget called CupertinoP… #20649
Conversation
| /// and action sheet. | ||
| /// | ||
| /// A [CupertinoPopupSurface] can be configured to paint or not paint its white | ||
| /// foreground color. Typical usage should paint the foreground. The foreground |
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.
Clarify wording wrt 'foreground'. It's still the background from the perspective of its child. Specify that it's the thing between the blur and the child.
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.
done
| /// actions. | ||
| /// * <https://developer.apple.com/ios/human-interface-guidelines/views/alerts/> | ||
| class CupertinoPopupSurface extends StatelessWidget { | ||
| /// Creates an iOS-style rectangular popup surface. |
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.
rounded rectangle
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.
done
| this.child, | ||
| }) : super(key: key); | ||
|
|
||
| /// Whether or not to paint a translucent white foreground on top of this |
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.
Describe what it's for (i.e. why not let this always be 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.
the purpose is described in the class description
| child: new BackdropFilter( | ||
| filter: new ImageFilter.blur(sigmaX: _kBlurAmount, sigmaY: _kBlurAmount), | ||
| child: new Container( | ||
| width: _kCupertinoDialogWidth, |
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.
This shouldn't be here right?
To test the general composability of this, move this to a different file and remove the word dialog from the various private consts that can now be moved.
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.
I moved the width decision up a level.
|
LGTM. This is probably the last time we will ever deprecate something, now that we are going into "stable" mode. |
|
@Hixie "Ever"? |
|
Hopefully! |
|
@Hixie how would that work? Every framework I've ever heard of has had many breaking changes across releases....let alone deprecations....how will Flutter be different? |
|
LGTM |
* Revert "Deprecated CupertinoDialog in favor of a new widget called CupertinoP… (#20649)" This reverts commit 3a4ae28. * Revert "Feature pesto new recipes (#19415)" This reverts commit e2f3b3d. * Revert "Use markdown table (#20721)" This reverts commit 82d43b9. * Revert "Documentation regarding tap gesture callbacks (#20647)" This reverts commit 3acc278. * Revert "Add branch to footer information in flutter docs (#20711)" This reverts commit 9118d3d. * Revert "Performance test cleanup (#20652)" This reverts commit 1993a67. * Revert "Track number of package dependencies in Flutter (#20722)" This reverts commit 03d6f18.
Deprecated CupertinoDialog in favor of a new widget called CupertinoPopupSurface. (#20397)