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
4cd5870e
Unverified
Commit
4cd5870e
authored
Jun 01, 2018
by
matthew-carroll
Committed by
GitHub
Jun 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added docs to CupertinoAlertDialog to explain title, content, and button styling (#18128) (#18129)
parent
62e87c8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
dialog.dart
packages/flutter/lib/src/cupertino/dialog.dart
+12
-3
No files found.
packages/flutter/lib/src/cupertino/dialog.dart
View file @
4cd5870e
...
...
@@ -106,9 +106,17 @@ class CupertinoDialog extends StatelessWidget {
/// An iOS-style alert dialog.
///
/// An alert dialog informs the user about situations that require
/// acknowledgement. An alert dialog has an optional title and an optional list
/// of actions. The title is displayed above the content and the actions are
/// displayed below the content.
/// acknowledgement. An alert dialog has an optional title, optional content,
/// and an optional list of actions. The title is displayed above the content
/// and the actions are displayed below the content.
///
/// This dialog styles its title and content (typically a message) to match the
/// standard iOS title and message dialog text style. These default styles can
/// be overridden by explicitly defining [TextStyle]s for [Text] widgets that
/// are part of the title or content.
///
/// To display action buttons that look like standard iOS dialog buttons,
/// provide [CupertinoDialogAction]s for the [actions] given to this dialog.
///
/// Typically passed as the child widget to [showDialog], which displays the
/// dialog.
...
...
@@ -116,6 +124,7 @@ class CupertinoDialog extends StatelessWidget {
/// See also:
///
/// * [CupertinoDialog], which is a generic iOS-style dialog.
/// * [CupertinoDialogAction], which is an iOS-style dialog button.
/// * <https://developer.apple.com/ios/human-interface-guidelines/views/alerts/>
class
CupertinoAlertDialog
extends
StatelessWidget
{
/// Creates an iOS-style alert dialog.
...
...
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