You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
## 3.0.0-beta.2
1
+
## 3.0.0-beta.3
2
2
-**CustomRefreshIndicator**:
3
3
- Deprecated *indicatorFinalizeDuration*, *indicatorSettleDuration*, *indicatorCancelDuration* and *completeStateDuration* parameters in favor of *durations*.
4
4
- The indicator widget will now be rebuilt every time *state* changes, even if the *autoRebuilt* parameter is set to false. This will make managing the state of the indicator widget simpler.
/// A function that is called when the user drags the refresh indicator.
49
-
onRefresh: myAsyncRefreshFunction,
50
-
)
51
-
```
52
-
53
-
## CustomMaterialIndicator
22
+
### **CustomMaterialIndicator**
54
23
55
24
If you just want to replace the content of the material indicator, you can use _CustomMaterialIndicator_ widget, which builds a material container. In addition to the built in _RefreshIndicator_ it supports horizontal lists and triggering from both edges (see the [trigger argument](#trigger-indicatortrigger)).
<imgwidth="200px"src="https://raw.githubusercontent.com/gonuit/flutter-custom-refresh-indicator/master/readme/simple_indicator.gif"alt="Controller data example" >
46
+
</a>
47
+
</div>
48
+
49
+
50
+
### **CustomRefreshIndicator**
51
+
52
+
Elevate your Flutter app with a tailor-made refresh indicator using the CustomRefreshIndicator widget. Just wrap your scrollable list, and design your unique indicator. It's that easy! 😏
53
+
54
+
```dart
55
+
CustomRefreshIndicator(
56
+
onRefresh: onRefresh, // Your refresh logic
57
+
builder: (context, child, controller) {
58
+
// Place your custom indicator here.
59
+
// Need inspiration? Look at the example app!
60
+
return MyIndicator(
61
+
child: child,
62
+
controller: controller,
63
+
);
64
+
},
65
+
child: ListView.builder(
66
+
itemBuilder: (_, index) => Text('Item $index'),
67
+
),
68
+
)
69
+
```
70
+
71
+
### ~~Effect:~~ What's Possible?
72
+
73
+
Your creativity sets the boundaries! Explore our examples (just scroll a bit 👇) to see what you can build. From subtle animations to eye-catching visuals, make the refresh action a delightful moment. 🚀
76
74
77
75
# Examples
78
76
@@ -142,7 +140,7 @@ CustomRefreshIndicator(
142
140
143
141
### Customization
144
142
145
-
-**notificationPredicate ()**: Determines which _ScrollNotifications_ will trigger the indicator.
143
+
-**notificationPredicate (ScrollNotificationPredicate)**: Determines which _ScrollNotifications_ will trigger the indicator.
146
144
-**leadingScrollIndicatorVisible (bool)**: Visibility of the leading scroll indicator.
147
145
-**trailingScrollIndicatorVisible (bool)**: Visibility of the trailing scroll indicator.
0 commit comments