Update example
This commit is contained in:
parent
23628f7b2a
commit
a618ee3ea3
|
@ -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;
|
||||
|
|
|
@ -24,7 +24,7 @@ dependencies:
|
|||
flutter:
|
||||
sdk: flutter
|
||||
|
||||
miniplayer: ^0.6.1
|
||||
miniplayer: ^1.0.0
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
|
Loading…
Reference in New Issue