File tree Expand file tree Collapse file tree 2 files changed +3
-21
lines changed Expand file tree Collapse file tree 2 files changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -1158,7 +1158,7 @@ class _UnsupportedDisplay implements TestDisplay {
1158
1158
/// // Fake the desired properties of the TestWindow. All code running
1159
1159
/// // within this test will perceive the following fake text scale
1160
1160
/// // factor as the real text scale factor of the window.
1161
- /// testBinding.window .textScaleFactorTestValue = 2.5; // ignore: deprecated_member_use
1161
+ /// testBinding.platformDispatcher .textScaleFactorTestValue = 2.5;
1162
1162
///
1163
1163
/// // Test code that depends on text scale factor here.
1164
1164
/// });
@@ -1533,24 +1533,6 @@ class TestWindow implements SingletonFlutterWindow {
1533
1533
)
1534
1534
@override
1535
1535
double get textScaleFactor => platformDispatcher.textScaleFactor;
1536
- /// Hides the real text scale factor and reports the given
1537
- /// [textScaleFactorTestValue] instead.
1538
- @Deprecated (
1539
- 'Use WidgetTester.platformDispatcher.textScaleFactorTestValue instead. '
1540
- 'This feature was deprecated after v2.11.0-0.0.pre.'
1541
- )
1542
- set textScaleFactorTestValue (double textScaleFactorTestValue) { // ignore: avoid_setters_without_getters
1543
- platformDispatcher.textScaleFactorTestValue = textScaleFactorTestValue;
1544
- }
1545
- /// Deletes any existing test text scale factor and returns to using the real
1546
- /// text scale factor.
1547
- @Deprecated (
1548
- 'Use WidgetTester.platformDispatcher.clearTextScaleFactorTestValue() instead. '
1549
- 'This feature was deprecated after v2.11.0-0.0.pre.'
1550
- )
1551
- void clearTextScaleFactorTestValue () {
1552
- platformDispatcher.clearTextScaleFactorTestValue ();
1553
- }
1554
1536
1555
1537
@Deprecated (
1556
1538
'Use WidgetTester.platformDispatcher.platformBrightness instead. '
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ void main() {
92
92
return WidgetsBinding .instance.window.textScaleFactor;
93
93
},
94
94
propertyFaker: (TestWidgetsFlutterBinding binding, double fakeValue) {
95
- binding.window .textScaleFactorTestValue = fakeValue;
95
+ binding.platformDispatcher .textScaleFactorTestValue = fakeValue;
96
96
},
97
97
);
98
98
});
@@ -118,7 +118,7 @@ void main() {
118
118
119
119
// Set fake values for window properties.
120
120
testWindow.devicePixelRatioTestValue = 2.5 ;
121
- testWindow .textScaleFactorTestValue = 3.0 ;
121
+ tester.platformDispatcher .textScaleFactorTestValue = 3.0 ;
122
122
123
123
// Erase fake window property values.
124
124
testWindow.clearAllTestValues ();
You can’t perform that action at this time.
0 commit comments