Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
4feb18ca
Unverified
Commit
4feb18ca
authored
Jan 19, 2021
by
Kate Lovett
Committed by
GitHub
Jan 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated CupertinoDialog (#73604)
parent
164e19be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
41 deletions
+27
-41
fix_data.yaml
packages/flutter/lib/fix_data.yaml
+27
-0
dialog.dart
packages/flutter/lib/src/cupertino/dialog.dart
+0
-41
No files found.
packages/flutter/lib/fix_data.yaml
View file @
4feb18ca
...
...
@@ -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
...
...
packages/flutter/lib/src/cupertino/dialog.dart
View file @
4feb18ca
...
...
@@ -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.
///
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment