From a66345f88ad436a2512c454ae09b24daa77fcab0 Mon Sep 17 00:00:00 2001 From: sensuikan1973 Date: Thu, 16 Nov 2023 14:52:44 +0900 Subject: [PATCH] fix --- test/home_test.dart | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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();