Skip to content

Commit

Permalink
release 1.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
peng8350 committed Nov 17, 2020
1 parent 7f06128 commit 62d4507
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<!-- Next version changes should go here -->
## 1.6.3
* fix bug:gesture disabled after refresh complete in an error refreshState
* fix problem:Footer hide back suddenly(this cause by the flutter breaking change)
* add vibrate option to enable vibrate when trigger onRefresh or onLoading
* fix SmartRefresher key in mutiple widgets
* add other languages

## 1.6.2
* fix "_pendingDimenssion is not true" error with the breaking change
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ add this line to pubspec.yaml
```yaml

dependencies:
pull_to_refresh: ^1.6.1
pull_to_refresh: ^1.6.3

```

Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
```yaml

dependencies:
pull_to_refresh: ^1.6.1
pull_to_refresh: ^1.6.13

```

Expand Down
6 changes: 3 additions & 3 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class MyApp extends StatelessWidget {
headerBuilder: () => MaterialClassicHeader(),
footerBuilder: () => ClassicFooter(),
enableLoadingWhenNoData: false,
enableRefreshVibrate: true,
enableLoadMoreVibrate: true,
enableRefreshVibrate: false,
enableLoadMoreVibrate: false,
shouldFooterFollowWhenNotFull: (state) {
// If you want load more with noMoreData state ,may be you should return false
return false;
Expand Down Expand Up @@ -65,7 +65,7 @@ class MyApp extends StatelessWidget {
const Locale('pt'),
const Locale('ko'),
],
locale: const Locale('ko'),
locale: const Locale('zh'),
localeResolutionCallback:
(Locale locale, Iterable<Locale> supportedLocales) {
//print("change language");
Expand Down
4 changes: 2 additions & 2 deletions lib/src/internals/indicator_wrap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ abstract class RefreshIndicatorState<T extends RefreshIndicator>
floating = true;
readyToRefresh();
}
if (configuration.enableRefreshVibrate) {
if (configuration.enableRefreshVibrate ?? false) {
HapticFeedback.vibrate();
}
if (refresher.onRefresh != null) refresher.onRefresh();
Expand Down Expand Up @@ -450,7 +450,7 @@ abstract class LoadIndicatorState<T extends LoadIndicator> extends State<T>
if (!floating) {
enterLoading();
}
if (configuration.enableLoadMoreVibrate) {
if (configuration.enableLoadMoreVibrate ?? false) {
HapticFeedback.vibrate();
}
if (refresher.onLoading != null) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pull_to_refresh
description: a widget provided to the flutter scroll component drop-down refresh and pull up load.
version: 1.6.2
version: 1.6.3
homepage: /~https://github.com/peng8350/flutter_pulltorefresh

environment:
Expand Down

0 comments on commit 62d4507

Please sign in to comment.