From 576191792a82ab6ce358ba1614d04b7154168877 Mon Sep 17 00:00:00 2001 From: najeira Date: Thu, 15 Feb 2018 10:16:34 +0900 Subject: [PATCH] Add explanation about Navigator to showDialog doc (#14666) * add explanation about navigator to showDialog doc * update doc by review --- packages/flutter/lib/src/material/dialog.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/flutter/lib/src/material/dialog.dart b/packages/flutter/lib/src/material/dialog.dart index 35ad9f7762..be73e66cb9 100644 --- a/packages/flutter/lib/src/material/dialog.dart +++ b/packages/flutter/lib/src/material/dialog.dart @@ -467,6 +467,11 @@ class _DialogRoute extends PopupRoute { /// Returns a [Future] that resolves to the value (if any) that was passed to /// [Navigator.pop] when the dialog was closed. /// +/// The dialog route created by this method is pushed to the root navigator. +/// If the application has multiple [Navigator] objects, it may be necessary to +/// call `Navigator.of(context, rootNavigator: true).pop(result)` to close the +/// dialog rather just 'Navigator.pop(context, result)`. +/// /// See also: /// * [AlertDialog], for dialogs that have a row of buttons below a body. /// * [SimpleDialog], which handles the scrolling of the contents and does