Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
smileShirely committed Jul 16, 2021
1 parent d6ee06a commit c203feb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ Flutter 应用内调试工具平台

## 特别说明

由于 UME 在顶层管理了路由栈,`showDialog` 等方法默认使用 `rootNavigator` 弹出,所以会导致路由栈出现错误。

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

``` dart
showDialog(
Expand Down
5 changes: 2 additions & 3 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ Visit [Develop plugin kits for UME](#develop-plugin-kits-for-ume) for more detai

## IMPORTANT

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.

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

``` dart
showDialog(
Expand Down

0 comments on commit c203feb

Please sign in to comment.