mcy_new #1

Merged
wangyang merged 179 commits from mcy_new into master 2025-08-28 10:10:45 +08:00
1 changed files with 14 additions and 7 deletions
Showing only changes of commit 7d6190040a - Show all commits

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: () {
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();
};
}, []);