Skip to content

[Api Docs] useRootNavigator flag does not match between implementation and documentation for showCupertinoModalPopup #106273

@yunusemrebakir

Description

@yunusemrebakir

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    d: api docsIssues with https://api.flutter.dev/f: cupertinoflutter/packages/flutter/cupertino repositoryf: routesNavigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions