mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-19 18:10:15 +08:00
@@ -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)),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user