Skip to content

Commit

Permalink
Merge pull request #249 from sliverappbar/chore
Browse files Browse the repository at this point in the history
chore: resolve deprecation warning issue
  • Loading branch information
violet-dev authored Oct 15, 2023
2 parents 921fa12 + 156e14c commit 5f1c1d7
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 5f1c1d7

Please sign in to comment.