diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cf8a976..52e71a62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -337,3 +337,10 @@ other: * fix footer renderError with reverse:true,behaviour return to 1.5.7 * add check null in requestRefresh() * fix refreshText reverse error(ClassicHeader) when reverse:true + +## 1.6.1 +* fix NestedScrollView requetRefresh error +* fix NestedScollView cast error +* fix twiceloadng when no data return +* add support for update refreshcontroller +* add other language diff --git a/README.md b/README.md index 63e437d2..381c08f7 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ add this line to pubspec.yaml ```yaml dependencies: - pull_to_refresh: ^1.6.0 + pull_to_refresh: ^1.6.1 ``` diff --git a/README_CN.md b/README_CN.md index 77a5680d..c7125487 100644 --- a/README_CN.md +++ b/README_CN.md @@ -35,7 +35,7 @@ ```yaml dependencies: - pull_to_refresh: ^1.6.0 + pull_to_refresh: ^1.6.1 ``` diff --git a/example/lib/main.dart b/example/lib/main.dart index 322701c1..a82739c6 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -14,7 +14,7 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return RefreshConfiguration( - footerTriggerDistance: -15, + footerTriggerDistance: 15, dragSpeedRatio: 0.91, headerBuilder: () => MaterialClassicHeader(), footerBuilder: () => ClassicFooter(), @@ -23,7 +23,6 @@ class MyApp extends StatelessWidget { // If you want load more with noMoreData state ,may be you should return false return false; }, - autoLoad: true, child: MaterialApp( title: 'Pulltorefresh Demo', debugShowCheckedModeBanner: false, diff --git a/lib/src/smart_refresher.dart b/lib/src/smart_refresher.dart index 2954bc5d..6393e35e 100644 --- a/lib/src/smart_refresher.dart +++ b/lib/src/smart_refresher.dart @@ -424,6 +424,7 @@ class SmartRefresherState extends State { reverse: reverse ?? false, ); } else if (childView is Scrollable) { + body = Scrollable( physics: _getScrollPhysics( conf, childView.physics ?? AlwaysScrollableScrollPhysics()), diff --git a/pubspec.yaml b/pubspec.yaml index 5cc471c7..12010d78 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: pull_to_refresh description: a widget provided to the flutter scroll component drop-down refresh and pull up load. -version: 1.6.0 +version: 1.6.1 homepage: https://github.com/peng8350/flutter_pulltorefresh environment: diff --git a/test/loadmore_test.dart b/test/loadmore_test.dart index 6877f949..7758c9c7 100644 --- a/test/loadmore_test.dart +++ b/test/loadmore_test.dart @@ -431,7 +431,7 @@ void main() { footer: TestFooter(), enablePullUp: true, enablePullDown: true, - onLoading: () async{ + onLoading: () async { await Future.delayed(const Duration(milliseconds: 180)); _refreshController.loadComplete(); time++; @@ -455,8 +455,6 @@ void main() { await tester.pump(const Duration(milliseconds: 20)); } expect(time, 1); - - }); });