File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,12 @@ class DialogStatus<T> {
49
49
///
50
50
/// The [DialogStatus.result] field of the return value can be used
51
51
/// for waiting for the dialog to be closed.
52
+ ///
53
+ /// The context argument is used to look up the [Navigator] for the dialog.
52
54
// This API is inspired by [ScaffoldManager.showSnackBar]. We wrap
53
55
// [showDialog]'s return value, a [Future], inside [DialogStatus]
54
56
// whose documentation can be accessed. This helps avoid confusion when
55
- // intepreting the meaning of the [Future].
57
+ // interpreting the meaning of the [Future].
56
58
DialogStatus <void > showErrorDialog ({
57
59
required BuildContext context,
58
60
required String title,
@@ -83,6 +85,8 @@ DialogStatus<void> showErrorDialog({
83
85
/// If the dialog was canceled,
84
86
/// either with the cancel button or by tapping outside the dialog's area,
85
87
/// it completes with null.
88
+ ///
89
+ /// The context argument is used to look up the [Navigator] for the dialog.
86
90
DialogStatus <bool > showSuggestedActionDialog ({
87
91
required BuildContext context,
88
92
required String title,
You can’t perform that action at this time.
0 commit comments