Skip to content

Commit e3ff6c9

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

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

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

readme/simple_indicator.gif

14.2 KB
Loading

0 commit comments

Comments
 (0)