mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-19 07:34:04 +08:00
opt: share/save video cover
Closes #563 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -18,6 +18,7 @@ import 'package:PiliPlus/pages/video/detail/member/horizontal_member_page.dart';
|
||||
import 'package:PiliPlus/pages/video/detail/reply_reply/view.dart';
|
||||
import 'package:PiliPlus/pages/video/detail/view_point/view_points_page.dart';
|
||||
import 'package:PiliPlus/pages/video/detail/widgets/ai_detail.dart';
|
||||
import 'package:PiliPlus/utils/download.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:PiliPlus/utils/global_data.dart';
|
||||
import 'package:PiliPlus/utils/id_utils.dart';
|
||||
@@ -1047,6 +1048,12 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
case 'note':
|
||||
videoDetailController.showNoteList(context);
|
||||
break;
|
||||
case 'savePic':
|
||||
DownloadUtils.downloadImg(
|
||||
context,
|
||||
[videoDetailController.videoItem['pic']],
|
||||
);
|
||||
break;
|
||||
}
|
||||
},
|
||||
itemBuilder: (BuildContext context) =>
|
||||
@@ -1060,6 +1067,11 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
value: 'note',
|
||||
child: Text('查看笔记'),
|
||||
),
|
||||
if (videoDetailController.videoItem['pic'] != null)
|
||||
const PopupMenuItem<String>(
|
||||
value: 'savePic',
|
||||
child: Text('保存封面'),
|
||||
),
|
||||
const PopupMenuItem<String>(
|
||||
value: 'report',
|
||||
child: Text('举报'),
|
||||
|
||||
Reference in New Issue
Block a user