Update example

This commit is contained in:
David Peters 2021-03-06 10:13:03 +01:00
parent 23628f7b2a
commit a618ee3ea3
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class MyHomePage extends StatefulWidget {
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return WillPopScope(
return MiniplayerWillPopScope(
onWillPop: () async {
final NavigatorState navigator = _navigatorKey.currentState;
if (!navigator.canPop()) return true;

View File

@ -24,7 +24,7 @@ dependencies:
flutter:
sdk: flutter
miniplayer: ^0.6.1
miniplayer: ^1.0.0
dev_dependencies:
flutter_test: