Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sensuikan1973 committed Nov 16, 2023
1 parent e83bb72 commit a66345f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions test/home_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,11 @@ import 'widget_test_helper/mock_package_info.dart';
Future<void> 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();
Expand Down

0 comments on commit a66345f

Please sign in to comment.