Rémon
Committed by GitHub

chore: fix analysis issues for flutter 3.1.3 (#376)

Co-authored-by: Remon Helmond <remon.helmond@hypervolt.co.uk>
@@ -70,7 +70,7 @@ class _AdvancedSnapSheetPageState extends State<AdvancedSnapSheetPage> @@ -70,7 +70,7 @@ class _AdvancedSnapSheetPageState extends State<AdvancedSnapSheetPage>
70 } 70 }
71 } 71 }
72 72
73 -class MapAppBar extends StatefulWidget with PreferredSizeWidget { 73 +class MapAppBar extends StatefulWidget implements PreferredSizeWidget {
74 const MapAppBar({Key? key, required this.controller}) : super(key: key); 74 const MapAppBar({Key? key, required this.controller}) : super(key: key);
75 final SheetController controller; 75 final SheetController controller;
76 @override 76 @override
@@ -5,10 +5,10 @@ packages: @@ -5,10 +5,10 @@ packages:
5 dependency: transitive 5 dependency: transitive
6 description: 6 description:
7 name: async 7 name: async
8 - sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0 8 + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9 url: "https://pub.dev" 9 url: "https://pub.dev"
10 source: hosted 10 source: hosted
11 - version: "2.10.0" 11 + version: "2.11.0"
12 boolean_selector: 12 boolean_selector:
13 dependency: transitive 13 dependency: transitive
14 description: 14 description:
@@ -21,10 +21,10 @@ packages: @@ -21,10 +21,10 @@ packages:
21 dependency: transitive 21 dependency: transitive
22 description: 22 description:
23 name: characters 23 name: characters
24 - sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c 24 + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
25 url: "https://pub.dev" 25 url: "https://pub.dev"
26 source: hosted 26 source: hosted
27 - version: "1.2.1" 27 + version: "1.3.0"
28 clock: 28 clock:
29 dependency: transitive 29 dependency: transitive
30 description: 30 description:
@@ -37,10 +37,10 @@ packages: @@ -37,10 +37,10 @@ packages:
37 dependency: transitive 37 dependency: transitive
38 description: 38 description:
39 name: collection 39 name: collection
40 - sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0 40 + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
41 url: "https://pub.dev" 41 url: "https://pub.dev"
42 source: hosted 42 source: hosted
43 - version: "1.17.0" 43 + version: "1.17.2"
44 cupertino_icons: 44 cupertino_icons:
45 dependency: "direct main" 45 dependency: "direct main"
46 description: 46 description:
@@ -88,14 +88,6 @@ packages: @@ -88,14 +88,6 @@ packages:
88 url: "https://pub.dev" 88 url: "https://pub.dev"
89 source: hosted 89 source: hosted
90 version: "4.5.1" 90 version: "4.5.1"
91 - js:  
92 - dependency: transitive  
93 - description:  
94 - name: js  
95 - sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7"  
96 - url: "https://pub.dev"  
97 - source: hosted  
98 - version: "0.6.5"  
99 logging: 91 logging:
100 dependency: transitive 92 dependency: transitive
101 description: 93 description:
@@ -108,26 +100,26 @@ packages: @@ -108,26 +100,26 @@ packages:
108 dependency: transitive 100 dependency: transitive
109 description: 101 description:
110 name: matcher 102 name: matcher
111 - sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72" 103 + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
112 url: "https://pub.dev" 104 url: "https://pub.dev"
113 source: hosted 105 source: hosted
114 - version: "0.12.13" 106 + version: "0.12.16"
115 material_color_utilities: 107 material_color_utilities:
116 dependency: transitive 108 dependency: transitive
117 description: 109 description:
118 name: material_color_utilities 110 name: material_color_utilities
119 - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 111 + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
120 url: "https://pub.dev" 112 url: "https://pub.dev"
121 source: hosted 113 source: hosted
122 - version: "0.2.0" 114 + version: "0.5.0"
123 meta: 115 meta:
124 dependency: transitive 116 dependency: transitive
125 description: 117 description:
126 name: meta 118 name: meta
127 - sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42" 119 + sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
128 url: "https://pub.dev" 120 url: "https://pub.dev"
129 source: hosted 121 source: hosted
130 - version: "1.8.0" 122 + version: "1.9.1"
131 nested: 123 nested:
132 dependency: transitive 124 dependency: transitive
133 description: 125 description:
@@ -140,10 +132,10 @@ packages: @@ -140,10 +132,10 @@ packages:
140 dependency: transitive 132 dependency: transitive
141 description: 133 description:
142 name: path 134 name: path
143 - sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b 135 + sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
144 url: "https://pub.dev" 136 url: "https://pub.dev"
145 source: hosted 137 source: hosted
146 - version: "1.8.2" 138 + version: "1.8.3"
147 provider: 139 provider:
148 dependency: "direct main" 140 dependency: "direct main"
149 description: 141 description:
@@ -158,7 +150,7 @@ packages: @@ -158,7 +150,7 @@ packages:
158 path: ".." 150 path: ".."
159 relative: true 151 relative: true
160 source: path 152 source: path
161 - version: "0.0.4+1" 153 + version: "1.0.0-pre"
162 sky_engine: 154 sky_engine:
163 dependency: transitive 155 dependency: transitive
164 description: flutter 156 description: flutter
@@ -168,10 +160,10 @@ packages: @@ -168,10 +160,10 @@ packages:
168 dependency: transitive 160 dependency: transitive
169 description: 161 description:
170 name: source_span 162 name: source_span
171 - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 163 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
172 url: "https://pub.dev" 164 url: "https://pub.dev"
173 source: hosted 165 source: hosted
174 - version: "1.9.1" 166 + version: "1.10.0"
175 stack_trace: 167 stack_trace:
176 dependency: transitive 168 dependency: transitive
177 description: 169 description:
@@ -208,10 +200,10 @@ packages: @@ -208,10 +200,10 @@ packages:
208 dependency: transitive 200 dependency: transitive
209 description: 201 description:
210 name: test_api 202 name: test_api
211 - sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206 203 + sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
212 url: "https://pub.dev" 204 url: "https://pub.dev"
213 source: hosted 205 source: hosted
214 - version: "0.4.16" 206 + version: "0.6.0"
215 vector_math: 207 vector_math:
216 dependency: transitive 208 dependency: transitive
217 description: 209 description:
@@ -220,6 +212,14 @@ packages: @@ -220,6 +212,14 @@ packages:
220 url: "https://pub.dev" 212 url: "https://pub.dev"
221 source: hosted 213 source: hosted
222 version: "2.1.4" 214 version: "2.1.4"
  215 + web:
  216 + dependency: transitive
  217 + description:
  218 + name: web
  219 + sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
  220 + url: "https://pub.dev"
  221 + source: hosted
  222 + version: "0.1.4-beta"
223 sdks: 223 sdks:
224 - dart: ">=2.18.0 <4.0.0" 224 + dart: ">=3.1.0-185.0.dev <4.0.0"
225 flutter: ">=3.7.0" 225 flutter: ">=3.7.0"
@@ -169,7 +169,7 @@ class BouncingSheetPhysics extends ScrollPhysics with SheetPhysics { @@ -169,7 +169,7 @@ class BouncingSheetPhysics extends ScrollPhysics with SheetPhysics {
169 @override 169 @override
170 Simulation? createBallisticSimulation( 170 Simulation? createBallisticSimulation(
171 ScrollMetrics position, double velocity) { 171 ScrollMetrics position, double velocity) {
172 - final Tolerance tolerance = this.tolerance; 172 + final Tolerance tolerance = toleranceFor(position);
173 if (position.outOfRange) { 173 if (position.outOfRange) {
174 return BouncingScrollSimulation( 174 return BouncingScrollSimulation(
175 spring: const SpringDescription( 175 spring: const SpringDescription(
@@ -266,7 +266,7 @@ class NoMomentumSheetPhysics extends ScrollPhysics with SheetPhysics { @@ -266,7 +266,7 @@ class NoMomentumSheetPhysics extends ScrollPhysics with SheetPhysics {
266 @override 266 @override
267 Simulation? createBallisticSimulation( 267 Simulation? createBallisticSimulation(
268 ScrollMetrics position, double velocity) { 268 ScrollMetrics position, double velocity) {
269 - final Tolerance tolerance = this.tolerance; 269 + final Tolerance tolerance = toleranceFor(position);
270 if (position.outOfRange) { 270 if (position.outOfRange) {
271 double? end; 271 double? end;
272 if (position.pixels > position.maxScrollExtent) { 272 if (position.pixels > position.maxScrollExtent) {
@@ -336,7 +336,7 @@ class ClampingSheetPhysics extends ScrollPhysics with SheetPhysics { @@ -336,7 +336,7 @@ class ClampingSheetPhysics extends ScrollPhysics with SheetPhysics {
336 @override 336 @override
337 Simulation? createBallisticSimulation( 337 Simulation? createBallisticSimulation(
338 ScrollMetrics position, double velocity) { 338 ScrollMetrics position, double velocity) {
339 - final Tolerance tolerance = this.tolerance; 339 + final Tolerance tolerance = toleranceFor(position);
340 if (position.outOfRange) { 340 if (position.outOfRange) {
341 double? end; 341 double? end;
342 if (position.pixels > position.maxScrollExtent) { 342 if (position.pixels > position.maxScrollExtent) {
@@ -443,7 +443,7 @@ class SnapSheetPhysics extends ScrollPhysics with SheetPhysics { @@ -443,7 +443,7 @@ class SnapSheetPhysics extends ScrollPhysics with SheetPhysics {
443 // if ((velocity <= 0.0 && position.pixels <= position.minScrollExtent) || 443 // if ((velocity <= 0.0 && position.pixels <= position.minScrollExtent) ||
444 // (velocity >= 0.0 && position.pixels >= position.maxScrollExtent)) 444 // (velocity >= 0.0 && position.pixels >= position.maxScrollExtent))
445 // return super.createBallisticSimulation(position, velocity); 445 // return super.createBallisticSimulation(position, velocity);
446 - final Tolerance tolerance = this.tolerance; 446 + final Tolerance tolerance = toleranceFor(position);
447 final double target = _getTargetPixels(position, tolerance, velocity); 447 final double target = _getTargetPixels(position, tolerance, velocity);
448 if (target != position.pixels) { 448 if (target != position.pixels) {
449 return ScrollSpringSimulation( 449 return ScrollSpringSimulation(
@@ -29,10 +29,10 @@ packages: @@ -29,10 +29,10 @@ packages:
29 dependency: transitive 29 dependency: transitive
30 description: 30 description:
31 name: async 31 name: async
32 - sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0 32 + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
33 url: "https://pub.dev" 33 url: "https://pub.dev"
34 source: hosted 34 source: hosted
35 - version: "2.10.0" 35 + version: "2.11.0"
36 boolean_selector: 36 boolean_selector:
37 dependency: transitive 37 dependency: transitive
38 description: 38 description:
@@ -45,10 +45,10 @@ packages: @@ -45,10 +45,10 @@ packages:
45 dependency: transitive 45 dependency: transitive
46 description: 46 description:
47 name: characters 47 name: characters
48 - sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c 48 + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
49 url: "https://pub.dev" 49 url: "https://pub.dev"
50 source: hosted 50 source: hosted
51 - version: "1.2.1" 51 + version: "1.3.0"
52 clock: 52 clock:
53 dependency: transitive 53 dependency: transitive
54 description: 54 description:
@@ -61,10 +61,10 @@ packages: @@ -61,10 +61,10 @@ packages:
61 dependency: transitive 61 dependency: transitive
62 description: 62 description:
63 name: collection 63 name: collection
64 - sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0 64 + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
65 url: "https://pub.dev" 65 url: "https://pub.dev"
66 source: hosted 66 source: hosted
67 - version: "1.17.0" 67 + version: "1.17.2"
68 convert: 68 convert:
69 dependency: transitive 69 dependency: transitive
70 description: 70 description:
@@ -183,26 +183,26 @@ packages: @@ -183,26 +183,26 @@ packages:
183 dependency: transitive 183 dependency: transitive
184 description: 184 description:
185 name: matcher 185 name: matcher
186 - sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72" 186 + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
187 url: "https://pub.dev" 187 url: "https://pub.dev"
188 source: hosted 188 source: hosted
189 - version: "0.12.13" 189 + version: "0.12.16"
190 material_color_utilities: 190 material_color_utilities:
191 dependency: transitive 191 dependency: transitive
192 description: 192 description:
193 name: material_color_utilities 193 name: material_color_utilities
194 - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 194 + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
195 url: "https://pub.dev" 195 url: "https://pub.dev"
196 source: hosted 196 source: hosted
197 - version: "0.2.0" 197 + version: "0.5.0"
198 meta: 198 meta:
199 dependency: transitive 199 dependency: transitive
200 description: 200 description:
201 name: meta 201 name: meta
202 - sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42" 202 + sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
203 url: "https://pub.dev" 203 url: "https://pub.dev"
204 source: hosted 204 source: hosted
205 - version: "1.8.0" 205 + version: "1.9.1"
206 mime: 206 mime:
207 dependency: transitive 207 dependency: transitive
208 description: 208 description:
@@ -239,10 +239,10 @@ packages: @@ -239,10 +239,10 @@ packages:
239 dependency: transitive 239 dependency: transitive
240 description: 240 description:
241 name: path 241 name: path
242 - sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b 242 + sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
243 url: "https://pub.dev" 243 url: "https://pub.dev"
244 source: hosted 244 source: hosted
245 - version: "1.8.2" 245 + version: "1.8.3"
246 pool: 246 pool:
247 dependency: transitive 247 dependency: transitive
248 description: 248 description:
@@ -316,10 +316,10 @@ packages: @@ -316,10 +316,10 @@ packages:
316 dependency: transitive 316 dependency: transitive
317 description: 317 description:
318 name: source_span 318 name: source_span
319 - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 319 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
320 url: "https://pub.dev" 320 url: "https://pub.dev"
321 source: hosted 321 source: hosted
322 - version: "1.9.1" 322 + version: "1.10.0"
323 stack_trace: 323 stack_trace:
324 dependency: transitive 324 dependency: transitive
325 description: 325 description:
@@ -356,26 +356,26 @@ packages: @@ -356,26 +356,26 @@ packages:
356 dependency: transitive 356 dependency: transitive
357 description: 357 description:
358 name: test 358 name: test
359 - sha256: a5fcd2d25eeadbb6589e80198a47d6a464ba3e2049da473943b8af9797900c2d 359 + sha256: "13b41f318e2a5751c3169137103b60c584297353d4b1761b66029bae6411fe46"
360 url: "https://pub.dev" 360 url: "https://pub.dev"
361 source: hosted 361 source: hosted
362 - version: "1.22.0" 362 + version: "1.24.3"
363 test_api: 363 test_api:
364 dependency: transitive 364 dependency: transitive
365 description: 365 description:
366 name: test_api 366 name: test_api
367 - sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206 367 + sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
368 url: "https://pub.dev" 368 url: "https://pub.dev"
369 source: hosted 369 source: hosted
370 - version: "0.4.16" 370 + version: "0.6.0"
371 test_core: 371 test_core:
372 dependency: transitive 372 dependency: transitive
373 description: 373 description:
374 name: test_core 374 name: test_core
375 - sha256: "0ef9755ec6d746951ba0aabe62f874b707690b5ede0fecc818b138fcc9b14888" 375 + sha256: "99806e9e6d95c7b059b7a0fc08f07fc53fabe54a829497f0d9676299f1e8637e"
376 url: "https://pub.dev" 376 url: "https://pub.dev"
377 source: hosted 377 source: hosted
378 - version: "0.4.20" 378 + version: "0.5.3"
379 typed_data: 379 typed_data:
380 dependency: transitive 380 dependency: transitive
381 description: 381 description:
@@ -408,6 +408,14 @@ packages: @@ -408,6 +408,14 @@ packages:
408 url: "https://pub.dev" 408 url: "https://pub.dev"
409 source: hosted 409 source: hosted
410 version: "1.0.2" 410 version: "1.0.2"
  411 + web:
  412 + dependency: transitive
  413 + description:
  414 + name: web
  415 + sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
  416 + url: "https://pub.dev"
  417 + source: hosted
  418 + version: "0.1.4-beta"
411 web_socket_channel: 419 web_socket_channel:
412 dependency: transitive 420 dependency: transitive
413 description: 421 description:
@@ -433,5 +441,5 @@ packages: @@ -433,5 +441,5 @@ packages:
433 source: hosted 441 source: hosted
434 version: "3.1.1" 442 version: "3.1.1"
435 sdks: 443 sdks:
436 - dart: ">=2.18.0 <4.0.0" 444 + dart: ">=3.1.0-185.0.dev <4.0.0"
437 flutter: ">=3.7.0" 445 flutter: ">=3.7.0"
@@ -9,8 +9,9 @@ const Rect kScreenRect = Rect.fromLTRB(0, 0, kScreenWidth, kScreenHeight); @@ -9,8 +9,9 @@ const Rect kScreenRect = Rect.fromLTRB(0, 0, kScreenWidth, kScreenHeight);
9 9
10 void main() { 10 void main() {
11 testWidgets('defaultTestSize', (WidgetTester tester) async { 11 testWidgets('defaultTestSize', (WidgetTester tester) async {
12 - final Size testSize = tester.binding.window.physicalSize /  
13 - tester.binding.window.devicePixelRatio; 12 + final Size testSize =
  13 + tester.view.physicalSize / tester.view.devicePixelRatio;
  14 +
14 expect(testSize, equals(kScreenSize)); 15 expect(testSize, equals(kScreenSize));
15 }); 16 });
16 } 17 }
@@ -77,6 +77,7 @@ void main() { @@ -77,6 +77,7 @@ void main() {
77 77
78 test('overscroll is progressively harder', () { 78 test('overscroll is progressively harder', () {
79 final ScrollMetrics lessOverscrolledPosition = FixedScrollMetrics( 79 final ScrollMetrics lessOverscrolledPosition = FixedScrollMetrics(
  80 + devicePixelRatio: 1,
80 minScrollExtent: 0.0, 81 minScrollExtent: 0.0,
81 maxScrollExtent: 1000.0, 82 maxScrollExtent: 1000.0,
82 pixels: -20.0, 83 pixels: -20.0,
@@ -86,6 +87,7 @@ void main() { @@ -86,6 +87,7 @@ void main() {
86 87
87 final ScrollMetrics moreOverscrolledPosition = FixedScrollMetrics( 88 final ScrollMetrics moreOverscrolledPosition = FixedScrollMetrics(
88 minScrollExtent: 0.0, 89 minScrollExtent: 0.0,
  90 + devicePixelRatio: 1,
89 maxScrollExtent: 1000.0, 91 maxScrollExtent: 1000.0,
90 pixels: -40.0, 92 pixels: -40.0,
91 viewportDimension: 100.0, 93 viewportDimension: 100.0,
@@ -114,6 +116,7 @@ void main() { @@ -114,6 +116,7 @@ void main() {
114 test('easing an overscroll still has resistance', () { 116 test('easing an overscroll still has resistance', () {
115 final ScrollMetrics overscrolledPosition = FixedScrollMetrics( 117 final ScrollMetrics overscrolledPosition = FixedScrollMetrics(
116 minScrollExtent: 0.0, 118 minScrollExtent: 0.0,
  119 + devicePixelRatio: 1,
117 maxScrollExtent: 1000.0, 120 maxScrollExtent: 1000.0,
118 pixels: -20.0, 121 pixels: -20.0,
119 viewportDimension: 100.0, 122 viewportDimension: 100.0,
@@ -131,6 +134,7 @@ void main() { @@ -131,6 +134,7 @@ void main() {
131 final ScrollMetrics scrollPosition = FixedScrollMetrics( 134 final ScrollMetrics scrollPosition = FixedScrollMetrics(
132 minScrollExtent: 0.0, 135 minScrollExtent: 0.0,
133 maxScrollExtent: 1000.0, 136 maxScrollExtent: 1000.0,
  137 + devicePixelRatio: 1,
134 pixels: 300.0, 138 pixels: 300.0,
135 viewportDimension: 100.0, 139 viewportDimension: 100.0,
136 axisDirection: AxisDirection.down, 140 axisDirection: AxisDirection.down,
@@ -150,6 +154,7 @@ void main() { @@ -150,6 +154,7 @@ void main() {
150 final ScrollMetrics overscrolledPosition = FixedScrollMetrics( 154 final ScrollMetrics overscrolledPosition = FixedScrollMetrics(
151 minScrollExtent: 0.0, 155 minScrollExtent: 0.0,
152 maxScrollExtent: 1000.0, 156 maxScrollExtent: 1000.0,
  157 + devicePixelRatio: 1,
153 pixels: -20.0, 158 pixels: -20.0,
154 viewportDimension: 100.0, 159 viewportDimension: 100.0,
155 axisDirection: AxisDirection.down, 160 axisDirection: AxisDirection.down,
@@ -168,12 +173,14 @@ void main() { @@ -168,12 +173,14 @@ void main() {
168 minScrollExtent: 0.0, 173 minScrollExtent: 0.0,
169 maxScrollExtent: 10.0, 174 maxScrollExtent: 10.0,
170 pixels: -20.0, 175 pixels: -20.0,
  176 + devicePixelRatio: 1,
171 viewportDimension: 100.0, 177 viewportDimension: 100.0,
172 axisDirection: AxisDirection.down, 178 axisDirection: AxisDirection.down,
173 ); 179 );
174 180
175 final ScrollMetrics bigListOverscrolledPosition = FixedScrollMetrics( 181 final ScrollMetrics bigListOverscrolledPosition = FixedScrollMetrics(
176 minScrollExtent: 0.0, 182 minScrollExtent: 0.0,
  183 + devicePixelRatio: 1,
177 maxScrollExtent: 1000.0, 184 maxScrollExtent: 1000.0,
178 pixels: -20.0, 185 pixels: -20.0,
179 viewportDimension: 100.0, 186 viewportDimension: 100.0,
@@ -199,6 +206,7 @@ void main() { @@ -199,6 +206,7 @@ void main() {
199 final ScrollMetrics scrollMetrics = FixedScrollMetrics( 206 final ScrollMetrics scrollMetrics = FixedScrollMetrics(
200 minScrollExtent: 0.0, 207 minScrollExtent: 0.0,
201 maxScrollExtent: 200.0, 208 maxScrollExtent: 200.0,
  209 + devicePixelRatio: 1,
202 pixels: 10.0, 210 pixels: 10.0,
203 viewportDimension: 100.0, 211 viewportDimension: 100.0,
204 axisDirection: AxisDirection.down, 212 axisDirection: AxisDirection.down,
@@ -217,6 +225,7 @@ void main() { @@ -217,6 +225,7 @@ void main() {
217 final ScrollMetrics scrollMetrics = FixedScrollMetrics( 225 final ScrollMetrics scrollMetrics = FixedScrollMetrics(
218 minScrollExtent: 0.0, 226 minScrollExtent: 0.0,
219 maxScrollExtent: 200.0, 227 maxScrollExtent: 200.0,
  228 + devicePixelRatio: 1,
220 pixels: 120.0, 229 pixels: 120.0,
221 viewportDimension: 100.0, 230 viewportDimension: 100.0,
222 axisDirection: AxisDirection.down, 231 axisDirection: AxisDirection.down,
@@ -237,6 +246,7 @@ void main() { @@ -237,6 +246,7 @@ void main() {
237 final ScrollMetrics scrollMetrics = FixedScrollMetrics( 246 final ScrollMetrics scrollMetrics = FixedScrollMetrics(
238 minScrollExtent: 0.0, 247 minScrollExtent: 0.0,
239 maxScrollExtent: 200.0, 248 maxScrollExtent: 200.0,
  249 + devicePixelRatio: 1,
240 pixels: -10.0, 250 pixels: -10.0,
241 viewportDimension: 100.0, 251 viewportDimension: 100.0,
242 axisDirection: AxisDirection.down, 252 axisDirection: AxisDirection.down,
@@ -258,6 +268,7 @@ void main() { @@ -258,6 +268,7 @@ void main() {
258 final ScrollMetrics scrollMetrics = FixedScrollMetrics( 268 final ScrollMetrics scrollMetrics = FixedScrollMetrics(
259 minScrollExtent: 0.0, 269 minScrollExtent: 0.0,
260 maxScrollExtent: 200.0, 270 maxScrollExtent: 200.0,
  271 + devicePixelRatio: 1,
261 pixels: 120.0, 272 pixels: 120.0,
262 viewportDimension: 100.0, 273 viewportDimension: 100.0,
263 axisDirection: AxisDirection.down, 274 axisDirection: AxisDirection.down,
@@ -275,6 +286,7 @@ void main() { @@ -275,6 +286,7 @@ void main() {
275 final ScrollMetrics scrollMetrics = FixedScrollMetrics( 286 final ScrollMetrics scrollMetrics = FixedScrollMetrics(
276 minScrollExtent: 0.0, 287 minScrollExtent: 0.0,
277 maxScrollExtent: 200.0, 288 maxScrollExtent: 200.0,
  289 + devicePixelRatio: 1,
278 pixels: -10.0, 290 pixels: -10.0,
279 viewportDimension: 100.0, 291 viewportDimension: 100.0,
280 axisDirection: AxisDirection.down, 292 axisDirection: AxisDirection.down,
@@ -303,6 +315,7 @@ void main() { @@ -303,6 +315,7 @@ void main() {
303 final ScrollMetrics scrollMetrics = FixedScrollMetrics( 315 final ScrollMetrics scrollMetrics = FixedScrollMetrics(
304 minScrollExtent: 0.0, 316 minScrollExtent: 0.0,
305 maxScrollExtent: 200.0, 317 maxScrollExtent: 200.0,
  318 + devicePixelRatio: 1,
306 pixels: 120.0, 319 pixels: 120.0,
307 viewportDimension: 100.0, 320 viewportDimension: 100.0,
308 axisDirection: AxisDirection.down, 321 axisDirection: AxisDirection.down,
@@ -320,6 +333,7 @@ void main() { @@ -320,6 +333,7 @@ void main() {
320 final ScrollMetrics scrollMetrics = FixedScrollMetrics( 333 final ScrollMetrics scrollMetrics = FixedScrollMetrics(
321 minScrollExtent: 0.0, 334 minScrollExtent: 0.0,
322 maxScrollExtent: 200.0, 335 maxScrollExtent: 200.0,
  336 + devicePixelRatio: 1,
323 pixels: -10.0, 337 pixels: -10.0,
324 viewportDimension: 100.0, 338 viewportDimension: 100.0,
325 axisDirection: AxisDirection.down, 339 axisDirection: AxisDirection.down,