mcy_new #1
|
|
@ -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();
|
||||
};
|
||||
}, []);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue