Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mZadorskii committed Dec 8, 2022
1 parent a93a250 commit 792126c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/golden_toolkit/lib/src/testing_tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ Future<void> _pumpAppWidget(
await tester.binding.setSurfaceSize(surfaceSize);
tester.binding.window.physicalSizeTestValue = surfaceSize;
tester.binding.window.devicePixelRatioTestValue = 1.0;
tester.binding.window.platformDispatcher.textScaleFactorTestValue = textScaleSize;
tester.binding.window.platformDispatcher.textScaleFactorTestValue =
textScaleSize;

await tester.pumpWidget(
DefaultAssetBundle(bundle: TestAssetBundle(), child: app),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ extension WidgetFlutterBindingExtensions on TestWidgetsFlutterBinding {
this.window.physicalSizeTestValue = device.size;
this.window.devicePixelRatioTestValue = device.devicePixelRatio;
this.window.platformDispatcher.textScaleFactorTestValue = device.textScale;
this.window.platformDispatcher.platformBrightnessTestValue = device.brightness;
this.window.platformDispatcher.platformBrightnessTestValue =
device.brightness;
this.window.safeAreaTestValue = device.safeArea;
}

Expand Down

0 comments on commit 792126c

Please sign in to comment.