-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
d: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/f: cupertinoflutter/packages/flutter/cupertino repositoryflutter/packages/flutter/cupertino repositoryf: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
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 ->
flutter/packages/flutter/lib/src/cupertino/route.dart
Lines 1131 to 1133 in 06810e2
| /// 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, |
Metadata
Metadata
Assignees
Labels
d: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/f: cupertinoflutter/packages/flutter/cupertino repositoryflutter/packages/flutter/cupertino repositoryf: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.