Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

update deprecated window property accesses #612

Merged
merged 2 commits into from
Mar 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test_goldens/testing/util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Future<void> 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);
}