Skip to content

Commit

Permalink
fix: Compatible with versions below Flutter3.10 (#722).
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelongqy committed May 18, 2023
1 parent 3b15b15 commit 19cb15d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 3.3.2+1
- fix: Compatible with versions below Flutter3.10 [#722](https://github.com/xuelongqy/flutter_easy_refresh/issues/722).

## 3.3.2
- fix: BezierIndicator.spinBuilder doesn't work.
- feat: Add BezierIndicator.spinInCenter.
Expand Down
9 changes: 1 addition & 8 deletions lib/src/physics/scroll_physics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -427,14 +427,7 @@ class _ERScrollPhysics extends BouncingScrollPhysics {
// This feature after v3.7.0-13.0.pre.
return (this as dynamic).toleranceFor(metrics);
} catch (_) {
try {
return (this as dynamic).tolerance;
} catch (_) {
return Tolerance(
velocity: 1.0 / (0.050 * metrics.devicePixelRatio),
distance: 1.0 / metrics.devicePixelRatio,
);
}
return this.tolerance;
}
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: easy_refresh
description: A flutter widget that provides pull-down refresh and pull-up load.
version: 3.3.2
version: 3.3.2+1
homepage: https://xuelongqy.github.io/flutter_easy_refresh
repository: https://github.com/xuelongqy/flutter_easy_refresh
issue_tracker: https://github.com/xuelongqy/flutter_easy_refresh/issues
Expand Down

0 comments on commit 19cb15d

Please sign in to comment.