msgbox start to work

This commit is contained in:
open-trade
2020-11-18 01:55:26 +08:00
parent 1a3a2cf6c7
commit a110db32e9
2 changed files with 28 additions and 5 deletions

View File

@@ -60,15 +60,16 @@ class _RemotePageState extends State<RemotePage> {
}
}
void handleMsgbox(evt) {
void handleMsgbox(Map<String, dynamic> evt) {
var type = evt['type'];
var title = evt['title'];
var text = evt['text'];
if (type == 'error') {
} else if (type == 're-input-password') {
if (type == 're-input-password') {
wrongPasswordDialog(widget.id, context);
} else if (type == 'input-password') {
enterPasswordDialog(widget.id, context);
} else {
msgbox(type, title, text, context);
}
}