may help issue #4714 #4780

This commit is contained in:
rustdesk
2023-06-28 17:09:23 +08:00
parent 9fa9128892
commit bb679bf25a
2 changed files with 15 additions and 13 deletions

View File

@@ -75,19 +75,19 @@ class _RemotePageState extends State<RemotePage> {
}
@override
void dispose() {
Future<void> dispose() async {
gFFI.dialogManager.hideMobileActionsOverlay();
gFFI.inputModel.listenToMouse(false);
gFFI.invokeMethod("enable_soft_keyboard", true);
await gFFI.invokeMethod("enable_soft_keyboard", true);
_mobileFocusNode.dispose();
_physicalFocusNode.dispose();
gFFI.close();
await gFFI.close();
_timer?.cancel();
gFFI.dialogManager.dismissAll();
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
overlays: SystemUiOverlay.values);
Wakelock.disable();
keyboardSubscription.cancel();
await Wakelock.disable();
await keyboardSubscription.cancel();
removeSharedStates(widget.id);
super.dispose();
}