Skip to content

Commit

Permalink
release 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
peng8350 committed Jul 25, 2020
1 parent fd73e59 commit fd7bc91
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ add this line to pubspec.yaml
```yaml

dependencies:
pull_to_refresh: ^1.6.0
pull_to_refresh: ^1.6.1

```

Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
```yaml

dependencies:
pull_to_refresh: ^1.6.0
pull_to_refresh: ^1.6.1

```

Expand Down
3 changes: 1 addition & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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,
Expand Down
1 change: 1 addition & 0 deletions lib/src/smart_refresher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ class SmartRefresherState extends State<SmartRefresher> {
reverse: reverse ?? false,
);
} else if (childView is Scrollable) {

body = Scrollable(
physics: _getScrollPhysics(
conf, childView.physics ?? AlwaysScrollableScrollPhysics()),
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: 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:
Expand Down
4 changes: 1 addition & 3 deletions test/loadmore_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand All @@ -455,8 +455,6 @@ void main() {
await tester.pump(const Duration(milliseconds: 20));
}
expect(time, 1);


});
});

Expand Down

0 comments on commit fd7bc91

Please sign in to comment.