From 5112e41d2174b5ba0c45ee8a8278ca9df82f98ef Mon Sep 17 00:00:00 2001 From: xuelong Date: Fri, 10 Nov 2023 18:12:26 +0800 Subject: [PATCH] fix: IndicatorNotifier._onCanProcess. Null check operator used on a null value (https://github.com/xuelongqy/flutter_easy_refresh/issues/782), (https://github.com/xuelongqy/flutter_easy_refresh/issues/774). --- CHANGELOG.md | 2 +- lib/src/notifier/indicator_notifier.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a616039..b93b0b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 3.3.2+3 +## 3.3.2+4 - fix: IndicatorNotifier._onCanProcess. Null check operator used on a null value [#782](https://github.com/xuelongqy/flutter_easy_refresh/issues/782), [#774](https://github.com/xuelongqy/flutter_easy_refresh/issues/774). ## 3.3.2+2 diff --git a/lib/src/notifier/indicator_notifier.dart b/lib/src/notifier/indicator_notifier.dart index 72951c5..4c633db 100644 --- a/lib/src/notifier/indicator_notifier.dart +++ b/lib/src/notifier/indicator_notifier.dart @@ -429,7 +429,7 @@ abstract class IndicatorNotifier extends ChangeNotifier { ScrollController? scrollController, bool force = false, }) { - if (_mounted) { + if (!_mounted) { return Future.value(); } if (!force) { diff --git a/pubspec.yaml b/pubspec.yaml index 15a87de..2bea1d3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: easy_refresh description: A flutter widget that provides pull-down refresh and pull-up load. -version: 3.3.2+3 +version: 3.3.2+4 homepage: https://xuelongqy.github.io/flutter_easy_refresh repository: https://github.com/xuelongqy/flutter_easy_refresh issue_tracker: https://github.com/xuelongqy/flutter_easy_refresh/issues