mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-27 07:01:00 +03:00
barrierDismissible and onWillPop
This commit is contained in:
@@ -59,7 +59,7 @@ class DialogManager {
|
||||
|
||||
static void reset([result]) {
|
||||
if (_dialogContext != null) {
|
||||
Navigator.pop(_dialogContext!,result);
|
||||
Navigator.pop(_dialogContext!, result);
|
||||
}
|
||||
_dialogContext = null;
|
||||
}
|
||||
@@ -83,7 +83,7 @@ class DialogManager {
|
||||
builder: (context) {
|
||||
DialogManager.register(context);
|
||||
return StatefulBuilder(
|
||||
builder: (_, setState) => builder(setState,DialogManager.reset));
|
||||
builder: (_, setState) => builder(setState, DialogManager.reset));
|
||||
});
|
||||
DialogManager.drop();
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user