You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 89db44f
Browse filesBrowse the repository at this point in the historyBrowse files
[material_ui][cupertino_ui] allow page routes to opt out of route semantics - #182556 (#12674)
Nested navigators may use routes to update only part of the visible screen. However, Material and Cupertino page routes currently introduce a semantics route scope, causing screen readers to treat these updates as navigation to a new screen.
This adds `includeRouteSemantics` to:
- `MaterialPageRoute`
- `MaterialPage`
- `CupertinoPageRoute`
- `CupertinoPage`
The option defaults to `true`, preserving existing behavior. When set to `false`, the route content is not wrapped in a semantics node with `scopesRoute: true`.
Tests cover both imperative routes and declarative pages.
Fixesflutter/flutter#168915.
## Pre-Review Checklist
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
0 commit comments