From 9e7e8dc30d37491cd93f558437c2c5f5a35c1650 Mon Sep 17 00:00:00 2001 From: darwin-morocho Date: Wed, 31 Jan 2024 11:28:16 -0500 Subject: [PATCH] 9.0.10 --- packages/flutter_meedu/CHANGELOG.md | 6 ++++++ packages/flutter_meedu/lib/consumer/consumer_widget.dart | 5 ++++- packages/flutter_meedu/pubspec.yaml | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/flutter_meedu/CHANGELOG.md b/packages/flutter_meedu/CHANGELOG.md index efeb7ad9..f36fbdb5 100644 --- a/packages/flutter_meedu/CHANGELOG.md +++ b/packages/flutter_meedu/CHANGELOG.md @@ -1,3 +1,9 @@ +## [9.0.10] +- Prevent dispose provider when didChangeDependencies is called on ConsumerWidget. + +## [9.0.9] +- Updated to meedu: ^9.0.3 + ## [9.0.9] - Updated to meedu: ^9.0.3 diff --git a/packages/flutter_meedu/lib/consumer/consumer_widget.dart b/packages/flutter_meedu/lib/consumer/consumer_widget.dart index ede5ea1c..7889ac07 100644 --- a/packages/flutter_meedu/lib/consumer/consumer_widget.dart +++ b/packages/flutter_meedu/lib/consumer/consumer_widget.dart @@ -79,7 +79,10 @@ class ConsumerStatefulElement extends StatefulElement implements BuilderRef { void clearListeners(Map map) { for (final e in map.entries) { if (!e.key.disposed) { - (e.key as dynamic).removeListener(e.value); + (e.key as dynamic).removeListener( + e.value, + ignoreAutoDispose: _isExternalBuild, + ); } } map.clear(); diff --git a/packages/flutter_meedu/pubspec.yaml b/packages/flutter_meedu/pubspec.yaml index 01a0909a..53c99976 100644 --- a/packages/flutter_meedu/pubspec.yaml +++ b/packages/flutter_meedu/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_meedu description: A powerful State Management, Dependency Injection, Reactive programming and Navigation for Flutter apps. -version: 9.0.9 +version: 9.0.10 homepage: https://github.com/darwin-morocho/flutter-meedu/tree/master/packages/flutter_meedu documentation: https://flutter.meedu.app