diff --git a/test/home_test.dart b/test/home_test.dart index 1265b5d48..803d668b5 100644 --- a/test/home_test.dart +++ b/test/home_test.dart @@ -37,15 +37,11 @@ import 'widget_test_helper/mock_package_info.dart'; Future main() async { setUpAll(() async { TestWidgetsFlutterBinding.ensureInitialized(); - WidgetsBinding.instance.renderView.configuration = new TestViewConfiguration( + // ignore: deprecated_member_use + WidgetsBinding.instance.renderView.configuration = TestViewConfiguration.fromView( + view: WidgetsBinding.instance.renderView.flutterView, // ignore: deprecated_member_use size: const Size(2048, 1024), ); // https://github.com/flutter/flutter/issues/12994#issuecomment-880199478 - // for (final renderview in RendererBinding.instance.renderViews) { - // renderview.configuration = TestViewConfiguration.fromView( - // view: renderview.flutterView, - // size: const Size(2048, 1024), - // ); // https://github.com/flutter/flutter/issues/12994#issuecomment-880199478 - // } await prepareLibedaxAssets(); await fakeSharedPreferences(); mockSecureBookmark();