Skip to content

Commit 0cfb63e

Browse files
committed
docs: update readme
1 parent 2751dfa commit 0cfb63e

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 4.0.0-dev.2
1+
## 4.0.0-dev.3
22
- **CustomRefreshIndicator**:
33
- Removed deprecated parameters: *indicatorCancelDuration*, *indicatorSettleDuration*, *indicatorFinalizeDuration* and *completeStateDuration* .If you are still using them, switch to the *duration* parameter.
44
- Improved handling of indicator controller changes.

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@ If you just want to replace the content of the material indicator, you can use _
2727
```dart
2828
CustomMaterialIndicator(
2929
onRefresh: onRefresh, // Your refresh logic
30-
builder: (context, controller) {
31-
return Icon(
32-
Icons.ac_unit,
33-
color: Colors.blue,
34-
size: 30,
30+
backgroundColor: Colors.white,
31+
indicatorBuilder: (context, controller) {
32+
return Padding(
33+
padding: const EdgeInsets.all(6.0),
34+
child: CircularProgressIndicator(
35+
color: Colors.redAccent,
36+
value: controller.state.isLoading ? null : math.min(controller.value, 1.0),
37+
),
3538
);
3639
},
37-
child: scrollable,
40+
child: child,
3841
)
3942
```
4043

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ packages:
4747
path: ".."
4848
relative: true
4949
source: path
50-
version: "4.0.0-dev.2"
50+
version: "4.0.0-dev.3"
5151
fake_async:
5252
dependency: transitive
5353
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: custom_refresh_indicator
22
description: Widget that makes it easy to implement a custom pull to refresh gesture.
3-
version: 4.0.0-dev.2
3+
version: 4.0.0-dev.3
44
repository: https://github.com/gonuit/flutter-custom-refresh-indicator
55
issue_tracker: https://github.com/gonuit/flutter-custom-refresh-indicator/issues
66
homepage: https://github.com/gonuit/flutter-custom-refresh-indicator

readme/simple_indicator.gif

14.2 KB
Loading

0 commit comments

Comments
 (0)