[framework] add ignores for platformDispatcher deprecation (#113238)

This commit is contained in:
Jonah Williams 2022-10-10 15:38:06 -07:00 committed by GitHub
parent 492bfddd9f
commit 4be0cfcb3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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();
}

View File

@ -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);
}