Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-29 13:35:51 +08:00
parent bcbfe5c849
commit 5979ddb60c
46 changed files with 3266 additions and 3293 deletions

View File

@@ -237,46 +237,44 @@ class _WhisperDetailPageState
Feedback.forLongPress(context);
showDialog(
context: context,
builder: (context) {
return AlertDialog(
clipBehavior: Clip.hardEdge,
contentPadding: const EdgeInsets.symmetric(vertical: 12),
content: isOwner
? ListTile(
onTap: () {
Get.back();
_whisperDetailController.sendMsg(
message: '${item.msgKey}',
onClearText: editController.clear,
msgType: 5,
index: index,
);
},
dense: true,
title: const Text('撤回', style: TextStyle(fontSize: 14)),
)
: ListTile(
onTap: () {
Get.back();
autoWrapReportDialog(
context,
ban: false,
ReportOptions.imMsgReport,
(reasonType, reasonDesc, banUid) =>
_whisperDetailController.onReport(
item,
reasonType,
reasonType == 0
? reasonDesc!
: ReportOptions.imMsgReport['']![reasonType]!,
),
);
},
dense: true,
title: const Text('举报', style: TextStyle(fontSize: 14)),
),
);
},
builder: (context) => AlertDialog(
clipBehavior: Clip.hardEdge,
contentPadding: const EdgeInsets.symmetric(vertical: 12),
content: isOwner
? ListTile(
onTap: () {
Get.back();
_whisperDetailController.sendMsg(
message: '${item.msgKey}',
onClearText: editController.clear,
msgType: 5,
index: index,
);
},
dense: true,
title: const Text('撤回', style: TextStyle(fontSize: 14)),
)
: ListTile(
onTap: () {
Get.back();
autoWrapReportDialog(
context,
ban: false,
ReportOptions.imMsgReport,
(reasonType, reasonDesc, banUid) =>
_whisperDetailController.onReport(
item,
reasonType,
reasonType == 0
? reasonDesc!
: ReportOptions.imMsgReport['']![reasonType]!,
),
);
},
dense: true,
title: const Text('举报', style: TextStyle(fontSize: 14)),
),
),
);
}