Skip to content

Commit fd7bc91

Browse files
committed
release 1.6.1
1 parent fd73e59 commit fd7bc91

File tree

7 files changed

+13
-8
lines changed

7 files changed

+13
-8
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -337,3 +337,10 @@ other:
337337
* fix footer renderError with reverse:true,behaviour return to 1.5.7
338338
* add check null in requestRefresh()
339339
* fix refreshText reverse error(ClassicHeader) when reverse:true
340+
341+
## 1.6.1
342+
* fix NestedScrollView requetRefresh error
343+
* fix NestedScollView cast error
344+
* fix twiceloadng when no data return
345+
* add support for update refreshcontroller
346+
* add other language

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ add this line to pubspec.yaml
3535
```yaml
3636

3737
dependencies:
38-
pull_to_refresh: ^1.6.0
38+
pull_to_refresh: ^1.6.1
3939

4040
```
4141

README_CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
```yaml
3636

3737
dependencies:
38-
pull_to_refresh: ^1.6.0
38+
pull_to_refresh: ^1.6.1
3939

4040
```
4141

example/lib/main.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class MyApp extends StatelessWidget {
1414
@override
1515
Widget build(BuildContext context) {
1616
return RefreshConfiguration(
17-
footerTriggerDistance: -15,
17+
footerTriggerDistance: 15,
1818
dragSpeedRatio: 0.91,
1919
headerBuilder: () => MaterialClassicHeader(),
2020
footerBuilder: () => ClassicFooter(),
@@ -23,7 +23,6 @@ class MyApp extends StatelessWidget {
2323
// If you want load more with noMoreData state ,may be you should return false
2424
return false;
2525
},
26-
autoLoad: true,
2726
child: MaterialApp(
2827
title: 'Pulltorefresh Demo',
2928
debugShowCheckedModeBanner: false,

lib/src/smart_refresher.dart

+1
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ class SmartRefresherState extends State<SmartRefresher> {
424424
reverse: reverse ?? false,
425425
);
426426
} else if (childView is Scrollable) {
427+
427428
body = Scrollable(
428429
physics: _getScrollPhysics(
429430
conf, childView.physics ?? AlwaysScrollableScrollPhysics()),

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pull_to_refresh
22
description: a widget provided to the flutter scroll component drop-down refresh and pull up load.
3-
version: 1.6.0
3+
version: 1.6.1
44
homepage: https://github.com/peng8350/flutter_pulltorefresh
55

66
environment:

test/loadmore_test.dart

+1-3
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ void main() {
431431
footer: TestFooter(),
432432
enablePullUp: true,
433433
enablePullDown: true,
434-
onLoading: () async{
434+
onLoading: () async {
435435
await Future.delayed(const Duration(milliseconds: 180));
436436
_refreshController.loadComplete();
437437
time++;
@@ -455,8 +455,6 @@ void main() {
455455
await tester.pump(const Duration(milliseconds: 20));
456456
}
457457
expect(time, 1);
458-
459-
460458
});
461459
});
462460

0 commit comments

Comments
 (0)