From 6ec444506375cfa94535a45c2320e01094c295e0 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Thu, 9 Mar 2023 16:19:48 -0800 Subject: [PATCH] Remove another reference to BindingBase.window (#122341) Remove another reference to BindingBase.window --- dev/benchmarks/microbenchmarks/lib/stocks/layout_bench.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/benchmarks/microbenchmarks/lib/stocks/layout_bench.dart b/dev/benchmarks/microbenchmarks/lib/stocks/layout_bench.dart index e4bc85ce52..a50ba1cd65 100644 --- a/dev/benchmarks/microbenchmarks/lib/stocks/layout_bench.dart +++ b/dev/benchmarks/microbenchmarks/lib/stocks/layout_bench.dart @@ -33,11 +33,11 @@ Future main() async { final TestViewConfiguration big = TestViewConfiguration( size: const Size(360.0, 640.0), - window: RendererBinding.instance.window, + window: tester.view, ); final TestViewConfiguration small = TestViewConfiguration( size: const Size(355.0, 635.0), - window: RendererBinding.instance.window, + window: tester.view, ); final RenderView renderView = WidgetsBinding.instance.renderView; binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy.benchmark;