Skip to content

Commit 6365388

Browse files
dialog [nfc]: Document required ancestors for BuildContext in showErrorDialog
And fix a typo.
1 parent 6337e08 commit 6365388

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/widgets/dialog.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ class DialogStatus {
3131
///
3232
/// The [DialogStatus.closed] field of the return value can be used
3333
/// for waiting for the dialog to be closed.
34+
///
35+
/// The context argument is used to look up [ZulipLocalizations],
36+
/// the [Navigator] and [Theme] for the dialog.
3437
// This API is inspired by [ScaffoldManager.showSnackBar]. We wrap
3538
// [showDialog]'s return value, a [Future], inside [DialogStatus]
3639
// whose documentation can be accessed. This helps avoid confusion when
37-
// intepreting the meaning of the [Future].
40+
// interpreting the meaning of the [Future].
3841
DialogStatus showErrorDialog({
3942
required BuildContext context,
4043
required String title,

0 commit comments

Comments
 (0)