File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,16 @@ Widget _dialogActionText(String text) {
22
22
/// See also:
23
23
/// * [showDialog] , whose return value this class is intended to wrap.
24
24
class DialogStatus {
25
- const DialogStatus (this .closed );
25
+ const DialogStatus (this .result );
26
26
27
27
/// Resolves when the dialog is closed.
28
- final Future <void > closed ;
28
+ final Future <void > result ;
29
29
}
30
30
31
31
/// Displays an [AlertDialog] with a dismiss button
32
32
/// and optional "Learn more" button.
33
33
///
34
- /// The [DialogStatus.closed ] field of the return value can be used
34
+ /// The [DialogStatus.result ] field of the return value can be used
35
35
/// for waiting for the dialog to be closed.
36
36
// This API is inspired by [ScaffoldManager.showSnackBar]. We wrap
37
37
// [showDialog]'s return value, a [Future], inside [DialogStatus]
Original file line number Diff line number Diff line change @@ -484,7 +484,7 @@ class _VideoLightboxPageState extends State<VideoLightboxPage> with PerAccountSt
484
484
context: context,
485
485
title: zulipLocalizations.errorDialogTitle,
486
486
message: zulipLocalizations.errorVideoPlayerFailed);
487
- await dialog.closed ;
487
+ await dialog.result ;
488
488
if (! mounted) return ;
489
489
Navigator .pop (context); // Pops the lightbox
490
490
}
You can’t perform that action at this time.
0 commit comments