Skip to content

Commit 03cd9b8

Browse files
committed
dialog [nfc]: s/DialogStatus.{closed,result}/
Discussion: #1471 (comment)
1 parent 07d60a7 commit 03cd9b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/widgets/dialog.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ Widget _dialogActionText(String text) {
2222
/// See also:
2323
/// * [showDialog], whose return value this class is intended to wrap.
2424
class DialogStatus {
25-
const DialogStatus(this.closed);
25+
const DialogStatus(this.result);
2626

2727
/// Resolves when the dialog is closed.
28-
final Future<void> closed;
28+
final Future<void> result;
2929
}
3030

3131
/// Displays an [AlertDialog] with a dismiss button
3232
/// and optional "Learn more" button.
3333
///
34-
/// The [DialogStatus.closed] field of the return value can be used
34+
/// The [DialogStatus.result] field of the return value can be used
3535
/// for waiting for the dialog to be closed.
3636
// This API is inspired by [ScaffoldManager.showSnackBar]. We wrap
3737
// [showDialog]'s return value, a [Future], inside [DialogStatus]

lib/widgets/lightbox.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ class _VideoLightboxPageState extends State<VideoLightboxPage> with PerAccountSt
484484
context: context,
485485
title: zulipLocalizations.errorDialogTitle,
486486
message: zulipLocalizations.errorVideoPlayerFailed);
487-
await dialog.closed;
487+
await dialog.result;
488488
if (!mounted) return;
489489
Navigator.pop(context); // Pops the lightbox
490490
}

0 commit comments

Comments
 (0)