From 4fa9d07e59d74c0a566ccdb6469fa1338b417c38 Mon Sep 17 00:00:00 2001 From: David Peters <8vsxdxd@gmail.com> Date: Sun, 7 Mar 2021 09:51:49 +0100 Subject: [PATCH] 1.0.0+2 bug fix --- CHANGELOG.md | 4 ++++ lib/src/miniplayer_will_pop_scope.dart | 2 +- pubspec.yaml | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2625db..aacf43d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.0+2 + +* Fixed a bug introduced with the null safety release + ## 1.0.0 * Null safety diff --git a/lib/src/miniplayer_will_pop_scope.dart b/lib/src/miniplayer_will_pop_scope.dart index 799b5bf..e0efacc 100644 --- a/lib/src/miniplayer_will_pop_scope.dart +++ b/lib/src/miniplayer_will_pop_scope.dart @@ -33,7 +33,7 @@ class _MiniplayerWillPopScopeState extends State { if (_descendant != null) { willPop = await _descendant!.onWillPop(); } - if (willPop == null) { + if (willPop == null || willPop) { willPop = await widget.onWillPop(); } return willPop; diff --git a/pubspec.yaml b/pubspec.yaml index 159bde4..e1bafb3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,12 +1,11 @@ name: miniplayer description: A lightweight flutter package to simplify the creation of a miniplayer. -version: 1.0.0 +version: 1.0.0+2 homepage: https://www.peterscode.dev repository: https://github.com/peterscodee/miniplayer environment: sdk: ">=2.12.0 <3.0.0" - flutter: ">=2.0.1" dependencies: flutter: