Skip to content

Conversation

@matthew-carroll
Copy link
Contributor

Deprecated CupertinoDialog in favor of a new widget called CupertinoPopupSurface. (#20397)

/// 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
Copy link
Member

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.

Copy link
Contributor Author

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rounded rectangle

Copy link
Contributor Author

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
Copy link
Member

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)

Copy link
Contributor Author

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,
Copy link
Member

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.

Copy link
Contributor Author

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.

@Hixie
Copy link
Contributor

Hixie commented Aug 15, 2018

LGTM. This is probably the last time we will ever deprecate something, now that we are going into "stable" mode.

@matthew-carroll
Copy link
Contributor Author

@Hixie "Ever"?

@Hixie
Copy link
Contributor

Hixie commented Aug 15, 2018

Hopefully!

@matthew-carroll
Copy link
Contributor Author

@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?

@xster
Copy link
Member

xster commented Aug 15, 2018

LGTM

@matthew-carroll matthew-carroll merged commit 3a4ae28 into flutter:master Aug 17, 2018
Hixie added a commit that referenced this pull request Aug 18, 2018
Hixie added a commit that referenced this pull request Aug 18, 2018
* 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.
@Piinks Piinks mentioned this pull request Jan 8, 2021
9 tasks
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants