We are using multiple Navigators in our app. While trying to fix an issue, I noticed that the documentation misled me and caused some debugging time. The issue is with the documentation of showCupertinoModalPopup.
While documentation says the useRootNavigator flag is set to false by default, in the implementation it is set to true.
Doc ->
|
/// The `useRootNavigator` argument is used to determine whether to push the |
|
/// popup to the [Navigator] furthest from or nearest to the given `context`. It |
|
/// is `false` by default. |
Code ->
|
bool useRootNavigator = true, |
We are using multiple
Navigators in our app. While trying to fix an issue, I noticed that the documentation misled me and caused some debugging time. The issue is with the documentation ofshowCupertinoModalPopup.While documentation says the
useRootNavigatorflag is set tofalseby default, in the implementation it is set totrue.Doc ->
flutter/packages/flutter/lib/src/cupertino/route.dart
Lines 1131 to 1133 in 06810e2
Code ->
flutter/packages/flutter/lib/src/cupertino/route.dart
Line 1185 in 06810e2