From 4be0cfcb3f81a5636cfef65ef7936d7895da2984 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Mon, 10 Oct 2022 15:38:06 -0700 Subject: [PATCH] [framework] add ignores for platformDispatcher deprecation (#113238) --- packages/flutter/lib/src/semantics/semantics.dart | 2 ++ packages/flutter_test/lib/src/window.dart | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/flutter/lib/src/semantics/semantics.dart b/packages/flutter/lib/src/semantics/semantics.dart index df377e4625..d60a72231e 100644 --- a/packages/flutter/lib/src/semantics/semantics.dart +++ b/packages/flutter/lib/src/semantics/semantics.dart @@ -3118,6 +3118,8 @@ class SemanticsOwner extends ChangeNotifier { final CustomSemanticsAction action = CustomSemanticsAction.getAction(actionId)!; builder.updateCustomAction(id: actionId, label: action.label, hint: action.hint, overrideId: action.action?.index ?? -1); } + // TODO(a-wallen): https://github.com/flutter/flutter/issues/112221 + // ignore: deprecated_member_use SemanticsBinding.instance.platformDispatcher.updateSemantics(builder.build()); notifyListeners(); } diff --git a/packages/flutter_test/lib/src/window.dart b/packages/flutter_test/lib/src/window.dart index 9ceb7e6b5c..9207367d49 100644 --- a/packages/flutter_test/lib/src/window.dart +++ b/packages/flutter_test/lib/src/window.dart @@ -853,6 +853,8 @@ class TestPlatformDispatcher implements ui.PlatformDispatcher { @override void updateSemantics(ui.SemanticsUpdate update) { + // TODO(a-wallen): https://github.com/flutter/flutter/issues/112221 + // ignore: deprecated_member_use _platformDispatcher.updateSemantics(update); }