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

@@ -61,51 +61,49 @@ class DetailItem extends StatelessWidget {
void onLongPress() => canDel && !enableMultiSelect
? showDialog(
context: context,
builder: (context) {
return AlertDialog(
clipBehavior: Clip.hardEdge,
contentPadding: const EdgeInsets.symmetric(vertical: 12),
content: Column(
mainAxisSize: MainAxisSize.min,
children: [
ListTile(
onTap: () {
Get.back();
showConfirmDialog(
context: context,
title: '确定删除该视频?',
onConfirm: onDelete,
);
},
dense: true,
title: const Text(
'删除',
style: TextStyle(fontSize: 14),
),
builder: (context) => AlertDialog(
clipBehavior: Clip.hardEdge,
contentPadding: const EdgeInsets.symmetric(vertical: 12),
content: Column(
mainAxisSize: MainAxisSize.min,
children: [
ListTile(
onTap: () {
Get.back();
showConfirmDialog(
context: context,
title: '确定删除该视频?',
onConfirm: onDelete,
);
},
dense: true,
title: const Text(
'删除',
style: TextStyle(fontSize: 14),
),
ListTile(
onTap: () async {
Get.back();
final res = await downloadService.downloadDanmaku(
entry: entry,
isUpdate: true,
);
if (res) {
SmartDialog.showToast('更新成功');
} else {
SmartDialog.showToast('更新失败');
}
},
dense: true,
title: const Text(
'更新弹幕',
style: TextStyle(fontSize: 14),
),
),
ListTile(
onTap: () async {
Get.back();
final res = await downloadService.downloadDanmaku(
entry: entry,
isUpdate: true,
);
if (res) {
SmartDialog.showToast('更新成功');
} else {
SmartDialog.showToast('更新失败');
}
},
dense: true,
title: const Text(
'更新弹幕',
style: TextStyle(fontSize: 14),
),
],
),
);
},
),
],
),
),
)
: null;