Skip to content

Commit c473d01

Browse files
committed
fix: Footer's maxOverOffset property does not work.
1 parent ecd2d40 commit c473d01

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
## Next
1+
## 3.2.1
2+
- fix: Footer's maxOverOffset property does not work.
23
- fix: When maxOverOffset is 0, list scrolling loses inertia.
34
- fix: When there is no task, the mode still changes [#608](https://github.com/xuelongqy/flutter_easy_refresh/issues/608).
45
- fix: HapticFeedback does not work when triggerWhenReach is true.

example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: EasyRefresh example.
77
# Both the version and the builder number may be overridden in flutter
88
# build by specifying --build-name and --build-number, respectively.
99
# Read more about versioning at semver.org.
10-
version: 3.2.0+51
10+
version: 3.2.1+52
1111

1212
environment:
1313
sdk: ">=2.17.0 <3.0.0"

lib/src/physics/scroll_physics.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,12 @@ class _ERScrollPhysics extends BouncingScrollPhysics {
330330
// Maximum overscroll offset
331331
if (footerNotifier.actualMaxOverOffset != double.infinity &&
332332
position.maxScrollExtent <
333-
value - headerNotifier.actualMaxOverOffset) {
333+
value - footerNotifier.actualMaxOverOffset) {
334334
_updateIndicatorOffset(
335335
position,
336-
position.maxScrollExtent + headerNotifier.actualMaxOverOffset,
336+
position.maxScrollExtent + footerNotifier.actualMaxOverOffset,
337337
value);
338-
return (value - headerNotifier.actualMaxOverOffset) -
338+
return (value - footerNotifier.actualMaxOverOffset) -
339339
position.maxScrollExtent;
340340
}
341341
// hit bottom over

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.2.0+1
3+
version: 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)