Skip to content

Commit

Permalink
chore: resolve deprecation warning issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sliverappbar committed Oct 15, 2023
1 parent 921fa12 commit 156e14c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pages/viewer/others/preload_page_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ class PageScrollPhysics extends ScrollPhysics {
(velocity >= 0.0 && position.pixels >= position.maxScrollExtent)) {
return super.createBallisticSimulation(position, velocity);
}
final Tolerance tolerance = this.tolerance;
final Tolerance tolerance = toleranceFor(position);
final double target =
_getTargetPixels(position as ScrollPosition, tolerance, velocity);
if (target != position.pixels) {
Expand Down

0 comments on commit 156e14c

Please sign in to comment.