@@ -17,7 +17,7 @@ If you are Chinese,click here([中文文档](https://github.com/peng8350/flutter
17
17
## ScreenShots
18
18
19
19
### Four RefreshStyle
20
- | Style| Follow | nFollow |
20
+ | Style| Follow | UnFollow |
21
21
| :---:| :---:| :---:|
22
22
| art| ![ ] ( example/images/classical_follow.gif ) | ![ ] ( example/images/classical_unfollow.gif ) |
23
23
@@ -43,7 +43,7 @@ If you are Chinese,click here([中文文档](https://github.com/peng8350/flutter
43
43
```
44
44
45
45
dependencies:
46
- pull_to_refresh: ^1.3.5
46
+ pull_to_refresh: ^1.3.6
47
47
48
48
```
49
49
@@ -58,7 +58,14 @@ initState(){
58
58
super.initState();
59
59
_refreshController = RefreshController();
60
60
// if you need refreshing when init
61
- // _refreshController.requestRefresh();
61
+ /*
62
+
63
+ SchedulerBinding.instance.addPostFrameCallback((_) {
64
+ _refreshController.requestRefresh();
65
+ });
66
+
67
+ */
68
+
62
69
}
63
70
64
71
void _onRefresh(){
@@ -79,7 +86,7 @@ build(){
79
86
SmartRefresher(
80
87
enablePullDown: true,
81
88
enablePullUp: true,
82
- header: WaterDropHeader(),
89
+ header: defaultTargetPlatform == TargetPlatform.iOS? WaterDropHeader():WaterDropMaterialHeader (),
83
90
controller: _refreshController,
84
91
onRefresh: _onRefresh,
85
92
onLoading: _onLoading,
@@ -120,9 +127,6 @@ internally via PrimaryScrollController. of (context) To get scrollController, sc
120
127
the reason may be SafeArea,the solution: wrap SmartRefresher in SafeArea
121
128
122
129
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.
126
130
127
131
## Thanks
128
132
0 commit comments