Revert "Add OrderedFocusTraversalPolicy and FocusTraversalGrou… (#50660)
This reverts commit 8ef5e2f046 because it breaks some semantics tests.
This commit is contained in:
@@ -435,7 +435,7 @@ class _FocusDemoState extends State<FocusDemo> {
|
||||
kUndoActionKey: () => kUndoAction,
|
||||
kRedoActionKey: () => kRedoAction,
|
||||
},
|
||||
child: FocusTraversalGroup(
|
||||
child: DefaultFocusTraversal(
|
||||
policy: ReadingOrderTraversalPolicy(),
|
||||
child: Shortcuts(
|
||||
shortcuts: <LogicalKeySet, Intent>{
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user