Skip to content

Commit c203feb

Browse files
committed
update
1 parent d6ee06a commit c203feb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ Flutter 应用内调试工具平台
8181

8282
## 特别说明
8383

84-
由于 UME 在顶层管理了路由栈,`showDialog` 等方法默认使用 `rootNavigator` 弹出,所以会导致路由栈出现错误。
85-
86-
因此**必须**在 `showDialog`、`showGeneralDialog` 等弹窗方法,传入参数 `useRootNavigator: false` 避免路由栈错误。
84+
由于 UME 在顶层管理了路由栈,`showDialog` 等方法默认使用 `rootNavigator` 弹出,
85+
所以**必须**在 `showDialog`、`showGeneralDialog` 等弹窗方法,传入参数 `useRootNavigator: false` 避免路由栈错误。
8786

8887
``` dart
8988
showDialog(

README_en.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ Visit [Develop plugin kits for UME](#develop-plugin-kits-for-ume) for more detai
8181

8282
## IMPORTANT
8383

84-
Since UME manages the routing stack at the top level, methods such as `showDialog` use `rootNavigator` to pop up by default, which will cause errors in the navigator.
85-
86-
Therefore **must** pass in the parameter `useRootNavigator: false` in `showDialog`, `showGeneralDialog` and other 'show dialog' methods to avoid navigator errors.
84+
Since UME manages the routing stack at the top level, methods such as `showDialog` use `rootNavigator` to pop up by default,
85+
therefore **must** pass in the parameter `useRootNavigator: false` in `showDialog`, `showGeneralDialog` and other 'show dialog' methods to avoid navigator errors.
8786

8887
``` dart
8988
showDialog(

0 commit comments

Comments
 (0)