处理全部弹窗没有弹出

This commit is contained in:
DESKTOP-I3JPKHK\wy 2025-04-21 15:28:36 +08:00
parent 3f9661436d
commit 7d6190040a
1 changed files with 14 additions and 7 deletions

View File

@ -334,12 +334,12 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
//
if (sateData.data.value?.showZgtAnnotate != null) {
await showDialog<bool>(
context: context,
context: Get.context ?? context,
builder: (context1) {
return AlertDialog(content: quickText("是否撤销上次批阅批注痕迹?"), actions: <Widget>[
TextButton(child: quickText("取消"), onPressed: () => Navigator.pop(context1, false)),
TextButton(
child: quickText("确定", color: Theme.of(context).primaryColor),
child: quickText("确定", color: Theme.of(context1).primaryColor),
onPressed: () => easyThrottle(
'REVOKE_THE_LAST_ANNOTATION_AND_SUBMIT',
() {
@ -371,11 +371,17 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
TextButton(child: quickText("取消"), onPressed: () => Navigator.pop(context1, false)),
TextButton(
child: quickText("确定", color: Theme.of(context).primaryColor),
onPressed: () {
Navigator.pop(context1, true);
sateData.data.value?.zgtAnnotate = null;
sateData.data.value?.showZgtAnnotate = null;
},
onPressed: () => easyThrottle(
'REVOKE_THE_LAST_ANNOTATION_AND_SUBMIT',
() {
Navigator.pop(context1, true);
sateData.data.value?.zgtAnnotate = null;
sateData.data.value?.showZgtAnnotate = null;
if (sateData.data.value != null) {
sateData.data.update((_) => logic.submit(Get.context ?? context));
}
},
),
)
]);
},
@ -395,6 +401,7 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
return () {
_activePointers = 0;
eventCancel();
};
}, []);