1.0.0+2 bug fix

This commit is contained in:
David Peters 2021-03-07 09:51:49 +01:00
parent d2ac3149d3
commit 4fa9d07e59
3 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,7 @@
## 1.0.0+2
* Fixed a bug introduced with the null safety release
## 1.0.0
* Null safety

View File

@ -33,7 +33,7 @@ class _MiniplayerWillPopScopeState extends State<MiniplayerWillPopScope> {
if (_descendant != null) {
willPop = await _descendant!.onWillPop();
}
if (willPop == null) {
if (willPop == null || willPop) {
willPop = await widget.onWillPop();
}
return willPop;

View File

@ -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: