Skip to content

Commit be61abd

Browse files
author
Kamil Klyta
committed
Update version
1 parent e0306ad commit be61abd

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 2.0.0-dev.5
1+
## 2.0.0-dev.6
22
## Breaking changes
33
- Added `autoRebuild` flag which is by default set to `true`.
44
From now on, there is no need to wrap widgets in the builder function with the `AnimatedBuilder` widget, as it will be automatically rebuilt. For optimization purposes, you can use the old behavior by setting the `autoRebuild` argument to false.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Almost all of these examples are available in the example application.
6060
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------: |
6161
| ![programmatically_controlled](readme/programmatically_controlled.gif) | Have you created a fancy refresh indicator? This place is for you. [Open PR](https://github.com/gonuit/flutter-custom-refresh-indicator/pulls). | Have you created a fancy refresh indicator? This place is for you. [Open PR](https://github.com/gonuit/flutter-custom-refresh-indicator/pulls). |
6262

63+
___
6364
# Documentation
6465

6566
## CustomRefreshIndicator
@@ -167,6 +168,8 @@ When set to *true*, the *builder* function will be triggered whenever the contro
167168

168169
The default is *true*.
169170

171+
___
172+
170173
## IndicatorController
171174

172175
The best way to understand how the _CustomRefreshIndicator_ widget changes the data of its controller is to look at the example 😉.

example/lib/indicators/warp_indicator.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'dart:math';
22

3+
import 'package:flutter/foundation.dart';
34
import 'package:flutter/material.dart';
45
import 'package:custom_refresh_indicator/custom_refresh_indicator.dart';
56
import 'package:flutter/rendering.dart';
@@ -23,7 +24,7 @@ typedef StarColorGetter = Color Function(int index);
2324
class WarpIndicator extends StatefulWidget {
2425
final Widget child;
2526
final int starsCount;
26-
final OnRefresh onRefresh;
27+
final AsyncCallback onRefresh;
2728
final IndicatorController? controller;
2829
final Color skyColor;
2930
final StarColorGetter starColorGetter;

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ packages:
4242
path: ".."
4343
relative: true
4444
source: path
45-
version: "2.0.0-dev.5"
45+
version: "2.0.0-dev.6"
4646
fake_async:
4747
dependency: transitive
4848
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: Flutter Widget that make it easy to implement custom refresh indicator.
3-
version: 2.0.0-dev.5
3+
version: 2.0.0-dev.6
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

0 commit comments

Comments
 (0)