diff --git a/lib/src/upgrade_alert.dart b/lib/src/upgrade_alert.dart index 2ea597c3..c3964a21 100644 --- a/lib/src/upgrade_alert.dart +++ b/lib/src/upgrade_alert.dart @@ -203,10 +203,7 @@ class UpgradeAlertState extends State { } } - void popNavigator(BuildContext context) { - Navigator.of(context).pop(); - displayed = false; - } + void popNavigator(BuildContext context) {} bool get shouldDisplayReleaseNotes => widget.showReleaseNotes && @@ -236,7 +233,7 @@ class UpgradeAlertState extends State { context: context, builder: (BuildContext context) { return PopScope( - canPop: onCanPop(), + canPop: false, onPopInvokedWithResult: (didPop, result) { if (widget.upgrader.state.debugLogging) { print('upgrader: showTheDialog onPopInvoked: $didPop');