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: