refactor dialog

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-03-24 15:21:14 +08:00
parent 308d336b20
commit 8ebfd3f628
42 changed files with 671 additions and 476 deletions

View File

@@ -25,7 +25,7 @@ import 'package:get/get.dart';
import '../common.dart';
import '../utils/image.dart' as img;
import '../mobile/widgets/dialog.dart';
import '../common/widgets/dialog.dart';
import 'input_model.dart';
import 'platform_model.dart';
@@ -293,6 +293,11 @@ class FfiModel with ChangeNotifier {
wrongPasswordDialog(id, dialogManager, type, title, text);
} else if (type == 'input-password') {
enterPasswordDialog(id, dialogManager);
} else if (type == 'xsession-login' || type == 'xsession-re-login') {
// to-do
} else if (type == 'xsession-login-password' ||
type == 'xsession-login-password') {
// to-do
} else if (type == 'restarting') {
showMsgBox(id, type, title, text, link, false, dialogManager,
hasCancel: false);