diff --git a/test_goldens/testing/util.dart b/test_goldens/testing/util.dart index f0dc61aa80..059b0c61d4 100644 --- a/test_goldens/testing/util.dart +++ b/test_goldens/testing/util.dart @@ -33,7 +33,8 @@ 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); }