Deprecate these old APIs (#116793)

Deprecate these old APIs
This commit is contained in:
Ian Hickson
2023-04-06 12:53:50 -07:00
committed by GitHub
parent 54e600049f
commit 806c1f8186
16 changed files with 113 additions and 81 deletions

View File

@@ -21,7 +21,7 @@ void main() {
await tester.pumpAndSettle();
// TODO(nurhan): https://github.com/flutter/flutter/issues/51885
SystemChannels.textInput.setMockMethodCallHandler(null);
tester.binding.defaultBinaryMessenger.setMockMethodCallHandler(SystemChannels.textInput, null);
// Focus on a TextFormField.
final Finder finder = find.byKey(const Key('input'));
expect(finder, findsOneWidget);
@@ -39,7 +39,7 @@ void main() {
platformViewsRegistry.getNextPlatformViewId();
// ignore: undefined_prefixed_name, avoid_dynamic_calls
ui.platformViewRegistry.registerViewFactory('MyView', (int viewId) {
++viewInstanceCount;
viewInstanceCount += 1;
return html.DivElement();
});