Skip to content

Commit 62d4507

Browse files
committed
release 1.6.3
1 parent 7f06128 commit 62d4507

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
<!-- Next version changes should go here -->
1+
## 1.6.3
2+
* fix bug:gesture disabled after refresh complete in an error refreshState
3+
* fix problem:Footer hide back suddenly(this cause by the flutter breaking change)
4+
* add vibrate option to enable vibrate when trigger onRefresh or onLoading
5+
* fix SmartRefresher key in mutiple widgets
6+
* add other languages
27

38
## 1.6.2
49
* fix "_pendingDimenssion is not true" error with the breaking change

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ add this line to pubspec.yaml
3535
```yaml
3636

3737
dependencies:
38-
pull_to_refresh: ^1.6.1
38+
pull_to_refresh: ^1.6.3
3939

4040
```
4141

README_CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
```yaml
3636

3737
dependencies:
38-
pull_to_refresh: ^1.6.1
38+
pull_to_refresh: ^1.6.13
3939

4040
```
4141

example/lib/main.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class MyApp extends StatelessWidget {
1919
headerBuilder: () => MaterialClassicHeader(),
2020
footerBuilder: () => ClassicFooter(),
2121
enableLoadingWhenNoData: false,
22-
enableRefreshVibrate: true,
23-
enableLoadMoreVibrate: true,
22+
enableRefreshVibrate: false,
23+
enableLoadMoreVibrate: false,
2424
shouldFooterFollowWhenNotFull: (state) {
2525
// If you want load more with noMoreData state ,may be you should return false
2626
return false;
@@ -65,7 +65,7 @@ class MyApp extends StatelessWidget {
6565
const Locale('pt'),
6666
const Locale('ko'),
6767
],
68-
locale: const Locale('ko'),
68+
locale: const Locale('zh'),
6969
localeResolutionCallback:
7070
(Locale locale, Iterable<Locale> supportedLocales) {
7171
//print("change language");

lib/src/internals/indicator_wrap.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ abstract class RefreshIndicatorState<T extends RefreshIndicator>
281281
floating = true;
282282
readyToRefresh();
283283
}
284-
if (configuration.enableRefreshVibrate) {
284+
if (configuration.enableRefreshVibrate ?? false) {
285285
HapticFeedback.vibrate();
286286
}
287287
if (refresher.onRefresh != null) refresher.onRefresh();
@@ -450,7 +450,7 @@ abstract class LoadIndicatorState<T extends LoadIndicator> extends State<T>
450450
if (!floating) {
451451
enterLoading();
452452
}
453-
if (configuration.enableLoadMoreVibrate) {
453+
if (configuration.enableLoadMoreVibrate ?? false) {
454454
HapticFeedback.vibrate();
455455
}
456456
if (refresher.onLoading != null) {

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pull_to_refresh
22
description: a widget provided to the flutter scroll component drop-down refresh and pull up load.
3-
version: 1.6.2
3+
version: 1.6.3
44
homepage: https://github.com/peng8350/flutter_pulltorefresh
55

66
environment:

0 commit comments

Comments
 (0)