Revert "Add OrderedFocusTraversalPolicy and FocusTraversalGrou… (#50660)

This reverts commit 8ef5e2f046 because it breaks some semantics tests.
This commit is contained in:
Greg Spencer
2020-02-12 13:37:36 -08:00
committed by GitHub
parent 7f819c935b
commit c132c0faa9
12 changed files with 331 additions and 1661 deletions

View File

@@ -435,7 +435,7 @@ class _FocusDemoState extends State<FocusDemo> {
kUndoActionKey: () => kUndoAction,
kRedoActionKey: () => kRedoAction,
},
child: FocusTraversalGroup(
child: DefaultFocusTraversal(
policy: ReadingOrderTraversalPolicy(),
child: Shortcuts(
shortcuts: <LogicalKeySet, Intent>{

View File

@@ -142,7 +142,7 @@ class _FocusDemoState extends State<FocusDemo> {
Widget build(BuildContext context) {
final TextTheme textTheme = Theme.of(context).textTheme;
return FocusTraversalGroup(
return DefaultFocusTraversal(
policy: ReadingOrderTraversalPolicy(),
child: FocusScope(
debugLabel: 'Scope',