fix dialog res bug ; add desktop restart remote device

This commit is contained in:
csf
2022-08-15 19:31:58 +08:00
parent 3e702c834a
commit f99ab7d0a7
7 changed files with 51 additions and 47 deletions

View File

@@ -92,7 +92,7 @@ typedef DialogBuilder = CustomAlertDialog Function(
class Dialog<T> {
OverlayEntry? entry;
Completer<T?> completer = Completer<T>();
Completer<T?> completer = Completer<T?>();
Dialog();
@@ -101,9 +101,10 @@ class Dialog<T> {
if (!completer.isCompleted) {
completer.complete(res);
}
entry?.remove();
} catch (e) {
debugPrint("Dialog complete catch error: $e");
} finally {
entry?.remove();
}
}
}