[framework] add ignores for platformDispatcher deprecation (#113238)
This commit is contained in:
parent
492bfddd9f
commit
4be0cfcb3f
@ -3118,6 +3118,8 @@ class SemanticsOwner extends ChangeNotifier {
|
|||||||
final CustomSemanticsAction action = CustomSemanticsAction.getAction(actionId)!;
|
final CustomSemanticsAction action = CustomSemanticsAction.getAction(actionId)!;
|
||||||
builder.updateCustomAction(id: actionId, label: action.label, hint: action.hint, overrideId: action.action?.index ?? -1);
|
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());
|
SemanticsBinding.instance.platformDispatcher.updateSemantics(builder.build());
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
@ -853,6 +853,8 @@ class TestPlatformDispatcher implements ui.PlatformDispatcher {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void updateSemantics(ui.SemanticsUpdate update) {
|
void updateSemantics(ui.SemanticsUpdate update) {
|
||||||
|
// TODO(a-wallen): https://github.com/flutter/flutter/issues/112221
|
||||||
|
// ignore: deprecated_member_use
|
||||||
_platformDispatcher.updateSemantics(update);
|
_platformDispatcher.updateSemantics(update);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user