Skip to content

Commit aac15ca

Browse files
author
xuelong
committed
更新至1.1.9
1 parent b687ac4 commit aac15ca

File tree

8 files changed

+14
-15
lines changed

8 files changed

+14
-15
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![License](https://img.shields.io/badge/license-MIT-green.svg)](/LICENSE)
44
[![Awesome Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://stackoverflow.com/questions/tagged/flutter?sort=votes)
5-
[![Pub](https://img.shields.io/badge/pub-v1.1.8-orange.svg)](https://pub.dartlang.org/packages/flutter_easyrefresh)
5+
[![Pub](https://img.shields.io/badge/pub-v1.1.9-orange.svg)](https://pub.dartlang.org/packages/flutter_easyrefresh)
66

77
## [English](https://github.com/xuelongqy/flutter_easyrefresh/blob/master/README_EN.md) | 中文
88

@@ -78,7 +78,7 @@
7878
```
7979
//pub方式
8080
dependencies:
81-
flutter_easyrefresh: ^1.1.8
81+
flutter_easyrefresh: ^1.1.9
8282
8383
//导入方式
8484
dependencies:

README_EN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![License](https://img.shields.io/badge/license-MIT-green.svg)](/LICENSE)
44
[![Awesome Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://stackoverflow.com/questions/tagged/flutter?sort=votes)
5-
[![Pub](https://img.shields.io/badge/pub-v1.1.8-orange.svg)](https://pub.dartlang.org/packages/flutter_easyrefresh)
5+
[![Pub](https://img.shields.io/badge/pub-v1.1.9-orange.svg)](https://pub.dartlang.org/packages/flutter_easyrefresh)
66

77
## English | [中文](https://github.com/xuelongqy/flutter_easyrefresh/blob/master/README.md)
88

@@ -78,7 +78,7 @@ Just like the name, EasyRefresh can easily implement pull-down refresh and uploa
7878
```
7979
//pub
8080
dependencies:
81-
flutter_easyrefresh: ^1.1.8
81+
flutter_easyrefresh: ^1.1.9
8282
8383
//import
8484
dependencies:

art/md/cn/CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@
8787
>修改:Child为Widget类型
8888
>调整:ClassicsHeader样式
8989
90-
## V 1.1.8
91-
>修复:不设置loadMore时,回拉异常的问题
90+
## V 1.1.9
91+
>修复:不设置loadMore或者onRefresh时,回拉异常的问题

art/md/en/CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@
8787
>Modify: Child to Widget type
8888
>Adjustment:ClassicsHeader style
8989
90-
## V 1.1.8
91-
>Repair: Pullback exception when loadMore is not set
90+
## V 1.1.9
91+
>Repair: Pullback exception when loadMore or onRefresh is not set

art/pkg/EasyRefresh.apk

32 Bytes
Binary file not shown.

lib/src/refresher.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,12 @@ class EasyRefreshState extends State<EasyRefresh> with TickerProviderStateMixin<
664664
if (_bottomItemHeight > 0.0 && notification.direction == ScrollDirection.forward) {
665665
// 底部加载布局出现反向滑动时(由上向下),将scrollPhysics置为RefreshScrollPhysics,只要有2个原因。1 减缓滑回去的速度,2 防止手指快速滑动时出现惯性滑动
666666
setState(() {
667-
_scrollPhysics = RefreshScrollPhysics(_refreshHeader.isFloat, _refreshFooter == null ? false : _refreshFooter.isFloat);
667+
_scrollPhysics = RefreshScrollPhysics( _refreshFooter == null ? false : _refreshFooter.isFloat);
668668
});
669669
} else if (_topItemHeight > 0.0 && notification.direction == ScrollDirection.reverse) {
670670
// 头部刷新布局出现反向滑动时(由下向上)
671671
setState(() {
672-
_scrollPhysics = RefreshScrollPhysics(_refreshHeader.isFloat, _refreshFooter == null ? false : _refreshFooter.isFloat);
672+
_scrollPhysics = RefreshScrollPhysics(_refreshFooter == null ? false : _refreshFooter.isFloat);
673673
});
674674
} else if (_bottomItemHeight > 0.0 && notification.direction == ScrollDirection.reverse) {
675675
// 反向再反向(恢复正向拖动)

lib/src/scrollPhysics/scroll_physics.dart

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ typedef Future BottomOver();
99
/// 切记 继承ScrollPhysics 必须重写applyTo,,在NeverScrollableScrollPhysics类里面复制就可以
1010
/// 出现反向滑动时用此ScrollPhysics
1111
class RefreshScrollPhysics extends ScrollPhysics {
12-
const RefreshScrollPhysics(this.headerFloat, this.footerFloat, {ScrollPhysics parent}) : super(parent: parent);
12+
const RefreshScrollPhysics(this.footerFloat, {ScrollPhysics parent}) : super(parent: parent);
1313

14-
// 是否浮动
15-
final bool headerFloat;
14+
// Footer是否浮动
1615
final bool footerFloat;
1716

1817
@override
1918
RefreshScrollPhysics applyTo(ScrollPhysics ancestor) {
20-
return new RefreshScrollPhysics(this.headerFloat, this.footerFloat, parent: buildParent(ancestor));
19+
return new RefreshScrollPhysics(this.footerFloat, parent: buildParent(ancestor));
2120
}
2221

2322
@override

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_easyrefresh
22
description: A widget provided to the flutter scroll component drop-down refresh and pull up load.
3-
version: 1.1.8
3+
version: 1.1.9
44
author: xuelongqy <xuelongqy@foxmail.com>
55
homepage: https://github.com/xuelongqy/flutter_easyrefresh
66

0 commit comments

Comments
 (0)