Skip to content

Commit a8b57cd

Browse files
committedMay 21, 2019
release 1.3.6
1 parent 52c1fbe commit a8b57cd

16 files changed

+1274
-27
lines changed
 

‎CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,9 @@ Notice: This version of the code changes much, Api too
128128
* Fix a bug: When the head overflows the view area, there is no clipping operation
129129
* Add material header(two indicator for FrontStyle)
130130
* Remove enableOverScroll
131+
132+
## 1.3.6
133+
* Fix NestedScrollView issue in 1.3.5
134+
* decrease default triggerDistance from 100.0 to 80.0
135+
* improve dragging scrolling speed of Front Style
136+
* Add offset attr in Front Style

‎README.md

+11-7
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you are Chinese,click here([中文文档](https://github.com/peng8350/flutter
1717
## ScreenShots
1818

1919
### Four RefreshStyle
20-
|Style| Follow | nFollow |
20+
|Style| Follow | UnFollow |
2121
|:---:|:---:|:---:|
2222
|art| ![](example/images/classical_follow.gif) | ![](example/images/classical_unfollow.gif) |
2323

@@ -43,7 +43,7 @@ If you are Chinese,click here([中文文档](https://github.com/peng8350/flutter
4343
```
4444
4545
dependencies:
46-
pull_to_refresh: ^1.3.5
46+
pull_to_refresh: ^1.3.6
4747
4848
```
4949

@@ -58,7 +58,14 @@ initState(){
5858
super.initState();
5959
_refreshController = RefreshController();
6060
// if you need refreshing when init
61-
// _refreshController.requestRefresh();
61+
/*
62+
63+
SchedulerBinding.instance.addPostFrameCallback((_) {
64+
_refreshController.requestRefresh();
65+
});
66+
67+
*/
68+
6269
}
6370
6471
void _onRefresh(){
@@ -79,7 +86,7 @@ build(){
7986
SmartRefresher(
8087
enablePullDown: true,
8188
enablePullUp: true,
82-
header: WaterDropHeader(),
89+
header: defaultTargetPlatform == TargetPlatform.iOS?WaterDropHeader():WaterDropMaterialHeader(),
8390
controller: _refreshController,
8491
onRefresh: _onRefresh,
8592
onLoading: _onLoading,
@@ -120,9 +127,6 @@ internally via PrimaryScrollController. of (context) To get scrollController, sc
120127
the reason may be SafeArea,the solution: wrap SmartRefresher in SafeArea
121128

122129

123-
* <h3>Does it support simple RefreshIndicator (material) + pull up loading and no elastic refresh combination?<br></h3>
124-
Yes, as long as you set the node properties enableOverScroll = false, enablePullDown = false, it's OK to wrap a single RefreshIndicator outside, and
125-
[Example4](https://github.com/peng8350/flutter_pulltorefresh/blob/master/example/lib/ui/Example3.dart) has given an example in demo.
126130

127131
## Thanks
128132

‎README_CN.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
```
3939
4040
dependencies:
41-
pull_to_refresh: ^1.3.5
41+
pull_to_refresh: ^1.3.6
4242
4343
```
4444

@@ -53,7 +53,13 @@ initState(){
5353
super.initState();
5454
_refreshController = RefreshController();
5555
// 如果你需要开始就请求一次刷新
56-
// _refreshController.requestRefresh();
56+
/*
57+
58+
SchedulerBinding.instance.addPostFrameCallback((_) {
59+
_refreshController.requestRefresh();
60+
});
61+
62+
*/
5763
}
5864
5965
void _onRefresh(){
@@ -74,7 +80,7 @@ build(){
7480
SmartRefresher(
7581
enablePullDown: true,
7682
enablePullUp: true,
77-
header: WaterDropHeader(),
83+
header: defaultTargetPlatform == TargetPlatform.iOS?WaterDropHeader():WaterDropMaterialHeader(),
7884
controller: _refreshController,
7985
onRefresh: _onRefresh,
8086
onLoading: _onLoading,
@@ -110,6 +116,7 @@ void dispose(){
110116
很大可能是因为SafeArea,。解决方法一般是在SmartRefresher外围套用SafeArea
111117

112118

119+
113120
## 感谢
114121

115122
[SmartRefreshLayout](https://github.com/scwang90/SmartRefreshLayout)

0 commit comments

Comments
 (0)