From 62d4507aeb183ec1e90f5d78d4f845ffda4adc3b Mon Sep 17 00:00:00 2001 From: peng8350 Date: Tue, 17 Nov 2020 16:28:07 +0800 Subject: [PATCH] release 1.6.3 --- CHANGELOG.md | 7 ++++++- README.md | 2 +- README_CN.md | 2 +- example/lib/main.dart | 6 +++--- lib/src/internals/indicator_wrap.dart | 4 ++-- pubspec.yaml | 2 +- 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8c49e01..e8b24c42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ - +## 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 diff --git a/README.md b/README.md index 381c08f7..e983c336 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ add this line to pubspec.yaml ```yaml dependencies: - pull_to_refresh: ^1.6.1 + pull_to_refresh: ^1.6.3 ``` diff --git a/README_CN.md b/README_CN.md index c7125487..b313879b 100644 --- a/README_CN.md +++ b/README_CN.md @@ -35,7 +35,7 @@ ```yaml dependencies: - pull_to_refresh: ^1.6.1 + pull_to_refresh: ^1.6.13 ``` diff --git a/example/lib/main.dart b/example/lib/main.dart index a628eaed..648cf626 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -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; @@ -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 supportedLocales) { //print("change language"); diff --git a/lib/src/internals/indicator_wrap.dart b/lib/src/internals/indicator_wrap.dart index be121735..a7973f44 100644 --- a/lib/src/internals/indicator_wrap.dart +++ b/lib/src/internals/indicator_wrap.dart @@ -281,7 +281,7 @@ abstract class RefreshIndicatorState floating = true; readyToRefresh(); } - if (configuration.enableRefreshVibrate) { + if (configuration.enableRefreshVibrate ?? false) { HapticFeedback.vibrate(); } if (refresher.onRefresh != null) refresher.onRefresh(); @@ -450,7 +450,7 @@ abstract class LoadIndicatorState extends State if (!floating) { enterLoading(); } - if (configuration.enableLoadMoreVibrate) { + if (configuration.enableLoadMoreVibrate ?? false) { HapticFeedback.vibrate(); } if (refresher.onLoading != null) { diff --git a/pubspec.yaml b/pubspec.yaml index 3893b324..3503bbc9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: