Skip to content

Conversation

@gspencergoog
Copy link
Contributor

Description

When we removed the FocusScope from the Navigator, we replaced it with a FocusTraversalGroup, but that had the unfortunate side effect of disabling any custom traversal policies already in effect. This adds logic to inherit the ambient policy if there is one, and supplying the default policy (ReadingOrderTraversalPolicy) if there isn't.

Tests

  • Added tests for both with and without ambient policies.

@flutter-dashboard flutter-dashboard bot added f: routes Navigator, Router, and related APIs. framework flutter/packages/flutter repository. See also f: labels. labels Sep 1, 2022
@gspencergoog gspencergoog force-pushed the fix_navigator_traversal_policy branch from 44449c3 to febaec4 Compare September 1, 2022 22:56
Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App f: routes Navigator, Router, and related APIs. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants