Revert "swap to SystemNavigator.pop from exit"
This reverts commit a86748e85f, as it was causing issues on Windows.
This commit is contained in:
parent
f931615890
commit
b694da31f9
3 changed files with 4 additions and 7 deletions
|
|
@ -3,7 +3,6 @@ import "dart:convert";
|
|||
import "dart:io";
|
||||
|
||||
import "package:flutter/foundation.dart";
|
||||
import "package:flutter/services.dart";
|
||||
import "package:flutter_riverpod/flutter_riverpod.dart";
|
||||
import "package:intl/intl.dart";
|
||||
import "package:nexus/controllers/key.dart";
|
||||
|
|
@ -78,7 +77,7 @@ class UnifiedPushController extends AsyncNotifier<bool> {
|
|||
KeyController.provider(KeyController.roomKey).future,
|
||||
) ==
|
||||
event.roomId)) {
|
||||
if (isInBackground) SystemNavigator.pop();
|
||||
if (isInBackground) exit(0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -104,7 +103,7 @@ class UnifiedPushController extends AsyncNotifier<bool> {
|
|||
},
|
||||
);
|
||||
|
||||
if (isInBackground) SystemNavigator.pop();
|
||||
if (isInBackground) exit(0);
|
||||
},
|
||||
onUnregistered: deregister,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue