From d34e3d9cef1e68c8927aa004f63bf052c6f7d6c5 Mon Sep 17 00:00:00 2001 From: pq Date: Mon, 7 Mar 2022 15:17:41 -0800 Subject: [PATCH 1/2] update deprecated window property accesses --- test_goldens/testing/util.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_goldens/testing/util.dart b/test_goldens/testing/util.dart index f0dc61aa80..59b3332d09 100644 --- a/test_goldens/testing/util.dart +++ b/test_goldens/testing/util.dart @@ -33,7 +33,7 @@ Future setUpBinding( }) async { tester.binding.window.physicalSizeTestValue = size; tester.binding.window.devicePixelRatioTestValue = 1.0; - tester.binding.window.textScaleFactorTestValue = 1.0; - tester.binding.window.platformBrightnessTestValue = brightness; + tester.binding.window.platformDispatcher.textScaleFactorTestValue = 1.0; + tester.binding.window.platformDispatcher.platformBrightnessTestValue = brightness; addTearDown(tester.binding.window.clearAllTestValues); } From 0ba7c8db5de2bc9ef939bc434e0738207913da63 Mon Sep 17 00:00:00 2001 From: pq Date: Mon, 7 Mar 2022 15:24:57 -0800 Subject: [PATCH 2/2] fmt --- test_goldens/testing/util.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test_goldens/testing/util.dart b/test_goldens/testing/util.dart index 59b3332d09..059b0c61d4 100644 --- a/test_goldens/testing/util.dart +++ b/test_goldens/testing/util.dart @@ -34,6 +34,7 @@ Future setUpBinding( tester.binding.window.physicalSizeTestValue = size; tester.binding.window.devicePixelRatioTestValue = 1.0; tester.binding.window.platformDispatcher.textScaleFactorTestValue = 1.0; - tester.binding.window.platformDispatcher.platformBrightnessTestValue = brightness; + tester.binding.window.platformDispatcher.platformBrightnessTestValue = + brightness; addTearDown(tester.binding.window.clearAllTestValues); }