@@ -316,7 +316,6 @@ class FixedExtentMetrics extends FixedScrollMetrics {
316
316
required super .viewportDimension,
317
317
required super .axisDirection,
318
318
required this .itemIndex,
319
- required super .devicePixelRatio,
320
319
});
321
320
322
321
@override
@@ -327,7 +326,6 @@ class FixedExtentMetrics extends FixedScrollMetrics {
327
326
double ? viewportDimension,
328
327
AxisDirection ? axisDirection,
329
328
int ? itemIndex,
330
- double ? devicePixelRatio,
331
329
}) {
332
330
return FixedExtentMetrics (
333
331
minScrollExtent: minScrollExtent ?? (hasContentDimensions ? this .minScrollExtent : null ),
@@ -336,7 +334,6 @@ class FixedExtentMetrics extends FixedScrollMetrics {
336
334
viewportDimension: viewportDimension ?? (hasViewportDimension ? this .viewportDimension : null ),
337
335
axisDirection: axisDirection ?? this .axisDirection,
338
336
itemIndex: itemIndex ?? this .itemIndex,
339
- devicePixelRatio: devicePixelRatio ?? this .devicePixelRatio,
340
337
);
341
338
}
342
339
@@ -402,7 +399,6 @@ class _FixedExtentScrollPosition extends ScrollPositionWithSingleContext impleme
402
399
double ? viewportDimension,
403
400
AxisDirection ? axisDirection,
404
401
int ? itemIndex,
405
- double ? devicePixelRatio,
406
402
}) {
407
403
return FixedExtentMetrics (
408
404
minScrollExtent: minScrollExtent ?? (hasContentDimensions ? this .minScrollExtent : null ),
@@ -411,7 +407,6 @@ class _FixedExtentScrollPosition extends ScrollPositionWithSingleContext impleme
411
407
viewportDimension: viewportDimension ?? (hasViewportDimension ? this .viewportDimension : null ),
412
408
axisDirection: axisDirection ?? this .axisDirection,
413
409
itemIndex: itemIndex ?? this .itemIndex,
414
- devicePixelRatio: devicePixelRatio ?? this .devicePixelRatio,
415
410
);
416
411
}
417
412
}
@@ -510,8 +505,8 @@ class FixedExtentScrollPhysics extends ScrollPhysics {
510
505
// Scenario 3:
511
506
// If there's no velocity and we're already at where we intend to land,
512
507
// do nothing.
513
- if (velocity.abs () < toleranceFor (position) .velocity
514
- && (settlingPixels - metrics.pixels).abs () < toleranceFor (position) .distance) {
508
+ if (velocity.abs () < tolerance .velocity
509
+ && (settlingPixels - metrics.pixels).abs () < tolerance .distance) {
515
510
return null ;
516
511
}
517
512
@@ -524,7 +519,7 @@ class FixedExtentScrollPhysics extends ScrollPhysics {
524
519
metrics.pixels,
525
520
settlingPixels,
526
521
velocity,
527
- tolerance: toleranceFor (position) ,
522
+ tolerance: tolerance ,
528
523
);
529
524
}
530
525
@@ -535,7 +530,7 @@ class FixedExtentScrollPhysics extends ScrollPhysics {
535
530
metrics.pixels,
536
531
settlingPixels,
537
532
velocity,
538
- toleranceFor (position) .velocity * velocity.sign,
533
+ tolerance .velocity * velocity.sign,
539
534
);
540
535
}
541
536
}
0 commit comments