Unverified Commit 4feb18ca authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Remove deprecated CupertinoDialog (#73604)

parent 164e19be
......@@ -11,6 +11,33 @@
version: 1
transforms:
# Change made in https://github.com/flutter/flutter/pull/20649
# TODO(Piinks): Add tests when `bulkApply:false` testing is supported, https://github.com/dart-lang/sdk/issues/44639
- title: 'Replace with CupertinoPopupSurface'
date: 2021-01-07
bulkApply: false
element:
uris: [ 'cupertino.dart' ]
class: 'CupertinoDialog'
changes:
- kind: 'rename'
newName: 'CupertinoPopupSurface'
# Change made in https://github.com/flutter/flutter/pull/20649
# TODO(Piinks): Add tests when `bulkApply:false` testing is supported, https://github.com/dart-lang/sdk/issues/44639
- title: 'Replace with CupertinoAlertDialog'
date: 2021-01-07
bulkApply: false
element:
uris: [ 'cupertino.dart' ]
class: 'CupertinoDialog'
changes:
- kind: 'rename'
newName: 'CupertinoAlertDialog'
- kind: 'renameParameter'
oldName: 'child'
newName: 'content'
# Changes made in https://github.com/flutter/flutter/pull/61648
- title: 'Migrate to autovalidateMode'
date: 2020-09-02
......
......@@ -279,47 +279,6 @@ class CupertinoAlertDialog extends StatelessWidget {
}
}
/// An iOS-style dialog.
///
/// This dialog widget does not have any opinion about the contents of the
/// dialog. Rather than using this widget directly, consider using
/// [CupertinoAlertDialog], which implement a specific kind of dialog.
///
/// Push with `Navigator.of(..., rootNavigator: true)` when using with
/// [CupertinoTabScaffold] to ensure that the dialog appears above the tabs.
///
/// See also:
///
/// * [CupertinoAlertDialog], which is a dialog with title, contents, and
/// actions.
/// * <https://developer.apple.com/ios/human-interface-guidelines/views/alerts/>
@Deprecated(
'Use CupertinoAlertDialog for alert dialogs. Use CupertinoPopupSurface for custom popups. '
'This feature was deprecated after v0.2.3.'
)
class CupertinoDialog extends StatelessWidget {
/// Creates an iOS-style dialog.
const CupertinoDialog({
Key? key,
this.child,
}) : super(key: key);
/// The widget below this widget in the tree.
final Widget? child;
@override
Widget build(BuildContext context) {
return Center(
child: SizedBox(
width: _kCupertinoDialogWidth,
child: CupertinoPopupSurface(
child: child,
),
),
);
}
}
/// Rounded rectangle surface that looks like an iOS popup surface, e.g., alert dialog
/// and action sheet.
///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment