File tree 7 files changed +18
-20
lines changed
7 files changed +18
-20
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.6.5
2
+ * fix check full page logic.
3
+ * fix crash "locking up a deactive widget is unsafe".
4
+
1
5
## 1.6.4
2
6
* fix error crash by deprecated function removed
3
7
* add extra ScrollView reference parameter
Original file line number Diff line number Diff line change 3
3
<img src =" https://img.shields.io/pub/v/pull_to_refresh.svg " />
4
4
</a >
5
5
<a href =" https://flutter.dev/ " >
6
- <img src =" https://img.shields.io/badge/flutter-%3E%3D%201.2.1 -green.svg " />
6
+ <img src =" https://img.shields.io/badge/flutter-%3E%3D%202.0.0 -green.svg " />
7
7
</a >
8
8
<a href =" https://opensource.org/licenses/MIT " >
9
9
<img src =" https://img.shields.io/badge/License-MIT-yellow.svg " />
@@ -35,10 +35,10 @@ add this line to pubspec.yaml
35
35
``` yaml
36
36
37
37
dependencies :
38
- # stable version
39
- pull_to_refresh : 1.6.3
40
- # other version
41
- # pull_to_refresh: ^ 1.6.4
38
+
39
+ pull_to_refresh : ^ 1.6.5
40
+ # null-safety version
41
+ # pull_to_refresh: 1.6.4-nullsafety.0
42
42
43
43
```
44
44
Original file line number Diff line number Diff line change 3
3
<img src =" https://img.shields.io/pub/v/pull_to_refresh.svg " />
4
4
</a >
5
5
<a href =" https://flutter.dev/ " >
6
- <img src =" https://img.shields.io/badge/flutter-%3E%3D%201.2.1 -green.svg " />
6
+ <img src =" https://img.shields.io/badge/flutter-%3E%3D%202.0.0 -green.svg " />
7
7
</a >
8
8
<a href =" https://opensource.org/licenses/MIT " >
9
9
<img src =" https://img.shields.io/badge/License-MIT-yellow.svg " />
35
35
``` yaml
36
36
37
37
dependencies :
38
- # stable version
39
- pull_to_refresh : 1.6.3
40
- # other version
41
- # pull_to_refresh: ^ 1.6.4
38
+
39
+ pull_to_refresh : ^ 1.6.5
40
+ # null-safety version
41
+ # pull_to_refresh: 1.6.4-nullsafety.0
42
42
43
43
```
44
44
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ class MyApp extends StatelessWidget {
13
13
// This widget is the root of your application.
14
14
@override
15
15
Widget build (BuildContext context) {
16
-
17
16
return RefreshConfiguration (
18
17
footerTriggerDistance: 15 ,
19
18
dragSpeedRatio: 0.91 ,
Original file line number Diff line number Diff line change @@ -77,8 +77,7 @@ class _MaterialClassicHeaderState
77
77
duration: Duration (milliseconds: 500 ));
78
78
_valueAni.addListener (() {
79
79
// frequently setState will decline the performance
80
- if (mounted && _position.pixels <= 0 )
81
- setState (() {});
80
+ if (mounted && _position.pixels <= 0 ) setState (() {});
82
81
});
83
82
_positionController =
84
83
AnimationController (vsync: this , duration: Duration (milliseconds: 300 ));
@@ -100,8 +99,6 @@ class _MaterialClassicHeaderState
100
99
super .didUpdateWidget (oldWidget);
101
100
}
102
101
103
-
104
-
105
102
@override
106
103
Widget buildContent (BuildContext context, RefreshStatus mode) {
107
104
// TODO: implement buildContent
Original file line number Diff line number Diff line change @@ -240,8 +240,7 @@ abstract class RefreshIndicatorState<T extends RefreshIndicator>
240
240
241
241
resetValue ();
242
242
243
- if (mode == RefreshStatus .idle)
244
- refresherState.setCanDrag (true );
243
+ if (mode == RefreshStatus .idle) refresherState.setCanDrag (true );
245
244
}
246
245
if (mode == RefreshStatus .completed || mode == RefreshStatus .failed) {
247
246
endRefresh ().then ((_) {
@@ -305,8 +304,7 @@ abstract class RefreshIndicatorState<T extends RefreshIndicator>
305
304
refresherState.setCanDrag (false );
306
305
update ();
307
306
} else if (mode == RefreshStatus .twoLeveling) {
308
- refresherState
309
- .setCanDrag (configuration.enableScrollWhenTwoLevel);
307
+ refresherState.setCanDrag (configuration.enableScrollWhenTwoLevel);
310
308
}
311
309
onModeChange (mode);
312
310
}
Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ class RenderSliverLoading extends RenderSliverSingleBoxAdapter {
398
398
sliverP = viewport.childAfter (sliverP);
399
399
}
400
400
// consider about footer layoutExtent,it should be subtracted it's height
401
- return totalScrollExtent >= cons.viewportMainAxisExtent ;
401
+ return totalScrollExtent >= cons.viewportMainAxisExtent;
402
402
}
403
403
404
404
// many sitiuation: 1. reverse 2. not reverse
You can’t perform that action at this time.
0 commit comments