Skip to content

Commit e50786c

Browse files
author
Kamil Klyta
committed
Documentation
1 parent 2de1130 commit e50786c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,26 @@ CustomRefreshIndicator(
4646

4747
## MaterialIndicatorDelegate
4848
If you just want to replace the content of the material indicator, you can use *MaterialIndicatorDelegate*, which builds a material container.
49+
### Code:
4950
```dart
5051
CustomRefreshIndicator(
51-
/// Scrollable widget
52-
child: ListView.builder(
53-
itemBuilder: (BuildContext context, int index) => Text(index.toString()),
54-
),
5552
/// delegate with configuration
5653
builder: MaterialIndicatorDelegate(
5754
builder: (context, controller) {
5855
return Icon(
5956
Icons.ac_unit,
60-
color: Colors.black,
57+
color: Colors.blue,
6158
size: 30,
6259
);
6360
},
6461
),
6562
onRefresh: myAsyncRefreshMethod,
63+
child: scrollable,
6664
)
6765
```
66+
### Effect:
67+
![simple_indicator](readme/simple_indicator.gif)
68+
6869

6970
# Examples
7071

readme/simple_indicator.gif

80 KB
Loading

0 commit comments

Comments
 (0)