Skip to content

Commit 19cb15d

Browse files
committed
fix: Compatible with versions below Flutter3.10 (#722).
1 parent 3b15b15 commit 19cb15d

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.3.2+1
2+
- fix: Compatible with versions below Flutter3.10 [#722](https://github.com/xuelongqy/flutter_easy_refresh/issues/722).
3+
14
## 3.3.2
25
- fix: BezierIndicator.spinBuilder doesn't work.
36
- feat: Add BezierIndicator.spinInCenter.

lib/src/physics/scroll_physics.dart

+1-8
Original file line numberDiff line numberDiff line change
@@ -427,14 +427,7 @@ class _ERScrollPhysics extends BouncingScrollPhysics {
427427
// This feature after v3.7.0-13.0.pre.
428428
return (this as dynamic).toleranceFor(metrics);
429429
} catch (_) {
430-
try {
431-
return (this as dynamic).tolerance;
432-
} catch (_) {
433-
return Tolerance(
434-
velocity: 1.0 / (0.050 * metrics.devicePixelRatio),
435-
distance: 1.0 / metrics.devicePixelRatio,
436-
);
437-
}
430+
return this.tolerance;
438431
}
439432
}
440433

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: easy_refresh
22
description: A flutter widget that provides pull-down refresh and pull-up load.
3-
version: 3.3.2
3+
version: 3.3.2+1
44
homepage: https://xuelongqy.github.io/flutter_easy_refresh
55
repository: https://github.com/xuelongqy/flutter_easy_refresh
66
issue_tracker: https://github.com/xuelongqy/flutter_easy_refresh/issues

0 commit comments

Comments
 (0)