opt: 视频卡片功能拓展

This commit is contained in:
guozhigq
2024-05-03 15:58:54 +08:00
parent 35a453aba7
commit 2d375e31ea
2 changed files with 130 additions and 98 deletions

View File

@ -233,6 +233,7 @@ class VideoContent extends StatelessWidget {
width: 24,
height: 24,
child: IconButton(
padding: EdgeInsets.zero,
onPressed: () {
feedBack();
showModalBottomSheet(
@ -386,6 +387,15 @@ class MorePanel extends StatelessWidget {
title:
Text('添加至稍后再看', style: Theme.of(context).textTheme.titleSmall),
),
ListTile(
onTap: () =>
imageSaveDialog(context, videoItem, SmartDialog.dismiss),
minLeadingWidth: 0,
leading: const Icon(Icons.photo_outlined, size: 19),
title:
Text('查看视频封面', style: Theme.of(context).textTheme.titleSmall),
),
const SizedBox(height: 20),
],
),
);